switch (ename) {
case 'bootstrap-body':
if (typeof(tree.el) != 'undefined' && tree.el == document.body) {
- break;
+ // this is the BorderLayout standard?
+ 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");
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 = {