We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b8ca1 commit f4f023aCopy full SHA for f4f023a
lib/codemirror.js
@@ -1141,7 +1141,7 @@ var CodeMirror = (function() {
1141
var shouldHaveScrollbar = scrollHeight ? "block" : "none";
1142
if (scrollbar.style.display != shouldHaveScrollbar) {
1143
scrollbar.style.display = shouldHaveScrollbar;
1144
- scrollbarInner.style.height = scrollHeight + "px";
+ if (scrollHeight) scrollbarInner.style.height = scrollHeight + "px";
1145
checkHeights();
1146
}
1147
0 commit comments