auto resizing issues #3537

Closed
opened 2015-09-18 02:30:25 +02:00 by marijnh · 3 comments
marijnh commented 2015-09-18 02:30:25 +02:00 (Migrated from gitlab.com)

I'm trying to match the auto resize example and I'm running into issues. I have viewportMargin set to Infinity and .CodeMirror has a height of auto. For some reason however my editor is setting its size to be equal to the viewport height.

I'm trying to match the auto resize example and I'm running into issues. I have viewportMargin set to `Infinity` and .CodeMirror has a height of `auto`. For some reason however my editor is setting its size to be equal to the viewport height.
marijnh commented 2015-09-21 13:05:12 +02:00 (Migrated from gitlab.com)

Can you provide an HTML file that demonstrates the problem? Does the demo also have this issue for you?

Can you provide an HTML file that demonstrates the problem? Does [the demo](http://codemirror.net/demo/resize.html) also have this issue for you?
marijnh commented 2016-04-29 20:06:33 +02:00 (Migrated from gitlab.com)

I am seeing this issue as well; it's not clear what the "demo" is supposed to be doing in this case, so I can't say if it's working. I've created a jsfiddle that demonstrates buggy behavior (option #1) with height: auto, and "working" behavior (option #2) with an explicit height set.

https://jsfiddle.net/jmuharsky/kpza6wuu/

I am seeing this issue as well; it's not clear what the "demo" is supposed to be doing in this case, so I can't say if it's working. I've created a jsfiddle that demonstrates buggy behavior (option #1) with height: auto, and "working" behavior (option #2) with an explicit height set. https://jsfiddle.net/jmuharsky/kpza6wuu/
marijnh commented 2016-05-02 11:02:12 +02:00 (Migrated from gitlab.com)

Yeah, and while you did remember to complain that it's not clear what the demo is supposed to be doing (though it does say so on the linked page -- "automatically resize to fit its content"), you didn't actually remember to mention what the problem you're running into is. Your jsfiddle shows a single editor, which appears to work, except that you put it into a fixed-height container, which does look rather wonky.

Yeah, and while you did remember to complain that it's not clear what the demo is supposed to be doing (though it does say so on the linked page -- "automatically resize to fit its content"), you didn't actually remember to mention what the problem you're running into is. Your jsfiddle shows a single editor, which appears to work, except that you put it into a fixed-height container, which does look rather wonky.
marijnh (Migrated from gitlab.com) closed this issue 2016-05-02 11:02:12 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#3537
No description provided.