X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/71b07fe1928b04a218e062f01cca720863b9eeb9..4e359249db1606a8cf23192c89a287523322e1ec:/project/static/js/lib/codemirror/codemirror.js diff --git a/project/static/js/lib/codemirror/codemirror.js b/project/static/js/lib/codemirror/codemirror.js index c8e5ddc7..25da6f74 100644 --- a/project/static/js/lib/codemirror/codemirror.js +++ b/project/static/js/lib/codemirror/codemirror.js @@ -157,14 +157,18 @@ var CodeMirror = (function(){ content_wrapper.appendChild(iframe_container); content_wrapper.style.position = 'relative'; content_wrapper.className = 'CodeMirror-content-wrapper'; + content_wrapper.style.width = options.width; + content_wrapper.style.height = options.height; iframe_container.style.position = 'absolute'; iframe_container.style.top = '0px'; iframe_container.style.right = '0px'; iframe_container.style.bottom = '0px'; - iframe_container.style.left = '28px'; + iframe_container.style.left = '0px'; if (options.lineNumbers) { + iframe_container.style.left = '28px'; + var nums = document.createElement("DIV"), scroller = document.createElement("DIV");