From 86c45b3bfdf6bdc52252b6565cad63a8cc7c2b5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Sat, 26 Sep 2009 21:02:12 +0200 Subject: [PATCH 1/1] Quick fix in CM. --- project/static/js/lib/codemirror/codemirror.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); -- 2.20.1