X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3d3c2fae86149ea2e5c7d7e4fb971fc84ce2c52a..86c45b3bfdf6bdc52252b6565cad63a8cc7c2b5f:/project/static/js/lib/codemirror/codemirror.js?ds=sidebyside 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");