diff --git a/lib/codemirror.js b/lib/codemirror.js index 3a20b39891ec4d307663015e2aad4bfde9566d71..32d55b8f9c99210c6ae8c9c8128d55e393421585 100644 --- a/lib/codemirror.js +++ b/lib/codemirror.js @@ -84,7 +84,8 @@ window.CodeMirror = (function() { function makeDisplay(place) { var d = {}; var input = d.input = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none;"); - if (!webkit) input.setAttribute("wrap", "off"); + if (webkit) input.style.width = "1000px"; + else input.setAttribute("wrap", "off"); input.setAttribute("autocorrect", "off"); input.setAttribute("autocapitalize", "off"); // Wraps and hides input textarea d.inputDiv = elt("div", [input], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");