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 22ee5fb commit d09d397Copy full SHA for d09d397
lib/codemirror.js
@@ -20,7 +20,7 @@ var CodeMirror = (function() {
20
// This mess creates the base DOM structure for the editor.
21
wrapper.innerHTML =
22
'<div style="position: relative">' + // Set to the height of the text, causes scrolling
23
- '<pre style="position: absolute; visibility: hidden">' + // To measure line/char size
+ '<pre style="position: relative; height: 0; visibility: hidden; overflow: hidden;">' + // To measure line/char size
24
'<span>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span></pre>' +
25
'<div style="position: relative">' + // Moved around its parent to cover visible view
26
'<div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div>' +
0 commit comments