builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 6 May 2010 09:28:48 +0000 (17:28 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 6 May 2010 09:28:48 +0000 (17:28 +0800)
builder.html.js

index e5f47f9..fa8e202 100644 (file)
@@ -82,25 +82,17 @@ Builder  = {
             
         }
         
-        return
-     /*
-        // force center region..
-        cfg.items[0].region = 'center';
-        cfg.items[0].background = false;
-        
-        this.panelroot = this.layout.addxtype(cfg.items[0]);
-        
-         
-        this.highlightElement(Pman.Tab.BuilderTree.currentNode);
+        // otherwise we are creating a layout area on the document..
         
-        if (this.panelroot.el) {
-                
-                this.panelroot.el.scrollTo('top', this.scroll.top);
-                this.panelroot.el.scrollTo('left', this.scroll.left);
-            
-        }
         
-        */
+        return
+        // handles 
+        // contentpanel, nestedlayoutpanel, contentpanel.. etc. 
+        // force center region..
+        cfg.region = 'center';
+        cfg.background = false;
+        cfg.el = Roo.get( document.body);
+        new Roo[cfg.xtype](cfg);