builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 6 May 2010 10:41:15 +0000 (18:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 6 May 2010 10:41:15 +0000 (18:41 +0800)
builder.html.js

index 07e0d34..131a651 100644 (file)
@@ -94,19 +94,21 @@ Builder  = {
         // force center region..
         cfg.region = 'center';
         cfg.background = false;
-        this.layoutbase = new Ext.BorderLayout(document.body, {
-          
-             center: {
-                titlebar: false,
-                autoScroll:false,
-                closeOnTab: true,
-                tabPosition: 'top',
-                //resizeTabs: true,
-                alwaysShowTabs: true,
-                minTabWidth: 140
-            }
-        });
-         
+        if (!this.layoutbase) {
+                
+            this.layoutbase = new Ext.BorderLayout(document.body, {
+              
+                 center: {
+                    titlebar: false,
+                    autoScroll:false,
+                    closeOnTab: true,
+                    tabPosition: 'top',
+                    //resizeTabs: true,
+                    alwaysShowTabs: true,
+                    minTabWidth: 140
+                }
+            });
+                }
         this.layoutbase.addxtype(  cfg );