Roo/XComponent.js
[roojs1] / roojs-core-debug.js
index f2b3d2f..56f3a51 100644 (file)
@@ -16007,7 +16007,28 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
                        this.parent = { el : true };
                        break;
                     }
-                    
+                    if (["Nest", "Content"].indexOf(tree.xtype)  > -1)  {
+                        // need to insert stuff...
+                        this.parent =  {
+                             el : new Roo.bootstrap.layout.Border({
+                                 el : document.body, 
+                     
+                                 center: {
+                                     titlebar: false,
+                                     autoScroll:false,
+                                     closeOnTab: true,
+                                     tabPosition: 'top',
+                                      //resizeTabs: true,
+                                     alwaysShowTabs: false,
+                                     hideTabs: true
+                                     //minTabWidth: 140
+                                 }
+                             })
+                        
+                         };
+                         break;
+                    }
+                         
                     if (typeof(Roo.bootstrap.Body) != 'undefined') {
                         this.parent = { el :  new  Roo.bootstrap.Body() };
                         Roo.debug && Roo.log("setting el to doc body");
@@ -16056,6 +16077,8 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, {
             Roo.debug && Roo.log("no parent - creating one");
             
             el = el ? Roo.get(el) : false;     
+             if (typeof(Roo.bootstrap.Body) != 'undefined') {
+            
             
             // it's a top level one..
             this.parent =  {