Quick fix in CM.
authorŁukasz Rekucki <lrekucki@gmail.com>
Sat, 26 Sep 2009 19:02:12 +0000 (21:02 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Sat, 26 Sep 2009 19:02:12 +0000 (21:02 +0200)
project/static/js/lib/codemirror/codemirror.js

index c8e5ddc..25da6f7 100644 (file)
@@ -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");