Skip to content

Commit e7b561f

Browse files
committed
Make input wrapper DIV 3px instead of 1px wide
Apparently this works around a Mobile Safari quirck.
1 parent cbf8e6b commit e7b561f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var CodeMirror = (function() {
2121
wrapper.className = "CodeMirror" + (options.lineWrapping ? " CodeMirror-wrap" : "");
2222
// This mess creates the base DOM structure for the editor.
2323
wrapper.innerHTML =
24-
'<div style="overflow: hidden; position: relative; width: 1px; height: 0px;">' + // Wraps and hides input textarea
24+
'<div style="overflow: hidden; position: relative; width: 3px; height: 0px;">' + // Wraps and hides input textarea
2525
'<textarea style="position: absolute; padding: 0; width: 1px;" wrap="off" ' +
2626
'autocorrect="off" autocapitalize="off"></textarea></div>' +
2727
'<div class="CodeMirror-scroll">' +

0 commit comments

Comments
 (0)