Roo/bootstrap/HtmlEditor.js
authorEdward <edward@roojs.com>
Mon, 28 Apr 2014 10:16:23 +0000 (18:16 +0800)
committerEdward <edward@roojs.com>
Mon, 28 Apr 2014 10:16:23 +0000 (18:16 +0800)
Roo/bootstrap/HtmlEditor.js

index 302c1e5..31ae794 100644 (file)
@@ -305,34 +305,34 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TriggerField,  {
     {
         //Roo.log('resize: ' +w + ',' + h );
         Roo.inputEl().HtmlEditor.superclass.onResize.apply(this, arguments);
-        if(this.inputEl() && this.iframe){
-            if(typeof w == 'number'){
-                var aw = w - this.wrap.getFrameWidth('lr');
-                this.inputEl().setWidth(this.adjustWidth('textarea', aw));
-                this.iframe.style.width = aw + 'px';
-            }
-            if(typeof h == 'number'){
-                var tbh = 0;
-                for (var i =0; i < this.toolbars.length;i++) {
-                    // fixme - ask toolbars for heights?
-                    tbh += this.toolbars[i].tb.el.getHeight();
-                    if (this.toolbars[i].footer) {
-                        tbh += this.toolbars[i].footer.el.getHeight();
-                    }
-                }
-                
-                
-                
-                
-                var ah = h - this.wrap.getFrameWidth('tb') - tbh;// this.tb.el.getHeight();
-                ah -= 5; // knock a few pixes off for look..
-                this.inputEl().setHeight(this.adjustWidth('textarea', ah));
-                this.iframe.style.height = ah + 'px';
-                if(this.doc){
-                    (this.doc.body || this.doc.documentElement).style.height = (ah - (this.iframePad*2)) + 'px';
-                }
-            }
-        }
+//        if(this.inputEl() && this.iframe){
+//            if(typeof w == 'number'){
+//                var aw = w - this.wrap.getFrameWidth('lr');
+//                this.inputEl().setWidth(this.adjustWidth('textarea', aw));
+//                this.iframe.style.width = aw + 'px';
+//            }
+//            if(typeof h == 'number'){
+//                var tbh = 0;
+//                for (var i =0; i < this.toolbars.length;i++) {
+//                    // fixme - ask toolbars for heights?
+//                    tbh += this.toolbars[i].tb.el.getHeight();
+//                    if (this.toolbars[i].footer) {
+//                        tbh += this.toolbars[i].footer.el.getHeight();
+//                    }
+//                }
+//                
+//                
+//                
+//                
+//                var ah = h - this.wrap.getFrameWidth('tb') - tbh;// this.tb.el.getHeight();
+//                ah -= 5; // knock a few pixes off for look..
+//                this.inputEl().setHeight(this.adjustWidth('textarea', ah));
+//                this.iframe.style.height = ah + 'px';
+//                if(this.doc){
+//                    (this.doc.body || this.doc.documentElement).style.height = (ah - (this.iframePad*2)) + 'px';
+//                }
+//            }
+//        }
     },
 
     /**