New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeMirror-gutter height doesn't size properly on init & container expends instead of scrolls #1891
Comments
Any chance you could post an example of this problem occuring, using JSBin or something? |
Yes, i'll try to get one together this afternoon. : . |
I'm seeing this issue as well on 3.16 and 3.19. I have CodeMirror in a resizable div like on jsfiddle.net. When the div is resized, .CodeMirror-gutters does not get resized because it has a hardcoded element height. That element height is only updated when the whole browser window is resized. Is there a workaround for this? |
Yes. Call |
In codemirror.css:160
.CodeMirror-gutter
would size properly with the above css, except for the following JavaScript, which overrides the height property at the element level. I can't figure out where JavaScript is getting the incorrect height—everything else inside of the.CodeMirror
container is sized properly.https://github.com/marijnh/CodeMirror/blob/master/lib/codemirror.js#L324
It does correct itself as soon as the content is changed, when it becomes .CodeMirror-gutters.
The text was updated successfully, but these errors were encountered: