From: Ɓukasz Rekucki Date: Sat, 26 Sep 2009 19:02:12 +0000 (+0200) Subject: Quick fix in CM. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/86c45b3bfdf6bdc52252b6565cad63a8cc7c2b5f?hp=-c Quick fix in CM. --- 86c45b3bfdf6bdc52252b6565cad63a8cc7c2b5f 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");