SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

Info: Responsive page scaling and SCEditor resizing

Open MioVisman opened this issue 1 year ago • 1 comments

Firefox 108

  1. If we do not specify the width parameter in sceditor.create(), then we get a violation of the dimensions of SCEditor when scaling the page:

test1

  1. If we specify width: '100%' , then everything is OK:

test2

MioVisman avatar Apr 04 '23 13:04 MioVisman

Thanks for reporting.

For backwards compatibility, the editors default behaviour is use the same pixel dimensions as the textarea it replaces which prevents the editor from resizing. It's something I'd like to change but it needs to be backwards compatible or part of a major version which is why it hasn't so far.

Although thinking about it, the original textarea's size could be converted to a percentage and used instead. That should still be backwards compatible while being responsive.

samclarke avatar Apr 04 '23 21:04 samclarke