Tui.editor: option height: 'auto' displays horizontal scrolling bar in textarea

Created on 4 Jun 2018  ·  3Comments  ·  Source: nhn/tui.editor

Version

1.1.1

Test Environment

Windows 7 and Chrome 66

Current Behavior

If you set the option height: 'auto' to the editor, you can see an horizontal scrolling bar in the middle of the textarea.

Expected Behavior

Hide the scrolling bar.

This can be done with something like this :

```css
.CodeMirror-scroll {
min-height: 166px;
}
````

Bug Codemirror Good First Issue 🙋‍♀️ 🙋‍♂️

Most helpful comment

image

All 3 comments

image

Might also be related to the editor not initializing correctly if starting in markdown mode.
I found something if its in an element with display: none theres initialization issues
Checkout https://github.com/codemirror/CodeMirror/issues/798

I found cause of this issue.

image

min-height: 145px; should also apply to <div class="CodeMirror-scroll" ... />.

image

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lovemine picture lovemine  ·  4Comments

Rorke76753 picture Rorke76753  ·  4Comments

cyberjacob picture cyberjacob  ·  4Comments

dioscuroi picture dioscuroi  ·  3Comments

kelvinkoko picture kelvinkoko  ·  3Comments