this.dialogroot.remove();
this.dialogroot = false;
}
-
+ if (this.layoutbase) {
+ this.layoutbase.remove();
+ this.layoutbase= false;
+ }
},
}
- return
- /*
- // force center region..
- cfg.items[0].region = 'center';
- cfg.items[0].background = false;
-
- this.panelroot = this.layout.addxtype(cfg.items[0]);
+ // otherwise we are creating a layout area on the document..
- this.highlightElement(Pman.Tab.BuilderTree.currentNode);
-
- if (this.panelroot.el) {
-
- this.panelroot.el.scrollTo('top', this.scroll.top);
- this.panelroot.el.scrollTo('left', this.scroll.left);
-
- }
-
- */
-
-
+ // handles
+ // contentpanel, nestedlayoutpanel, contentpanel.. etc.
+ // 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
+ }
+ });
+ var layoutroot = Roo.get( document.body).createChild({
+ id : cfg.id
+ });
+ this.layoutbase.add( 'center', new Roo[cfg.xtype](layoutroot , cfg));
var pr = xi['*prop'];
this.munge(xi);
// if prop is an array - then it's items are really the value..
+ if (pr.match(/\[\]$/)) {
+ pr = pr.replace(/\[\]$/, '');
+ cfg[pr] = cfg[pr] || [];
+ cfg[pr].push(xi);
+ continue;
+ }
+
if (xi.xtype && xi.xtype == 'Array') {
cfg[pr] = xi.items;
// console.log(ftg.id);
if (ftg.id && typeof(ftg.id) == 'string' && ftg.id.match(/builder-/)) {
var nid = ftg.id.replace('builder-', '').replace('x-form-el-', '');
- this.logMove( nid );
+ this[method]( nid );
return true;
}
// needs fixing..