{
el = el || false;
+ var hp = this.parent ? 1 : 0;
if (!el && typeof(this.parent) == 'string' && this.parent[0] == '#') {
// if parent is a '#.....' string, then let's use that..
return;
}
}
+
+
if (!this.parent) {
el = el ? Roo.get(el) : false;
closeOnTab: true,
tabPosition: 'top',
//resizeTabs: true,
- alwaysShowTabs: el ? false : true,
- hideTabs: el ? true : false,
+ alwaysShowTabs: el && hp? false : true,
+ hideTabs: el || !hp ? true : false,
minTabWidth: 140
}
})
}
o = o[e];
});
+
return o;
},
*/
preBuild : function ()
{
-
+ var _t = this;
Roo.each(this.modules , function (obj)
{
- obj.parent = this.toObject(obj.parent);
+ var opar = obj.parent;
+ obj.parent = this.toObject(opar);
if (!obj.parent) {
this.topModule = obj;
this.elmodules.push(obj);
return;
}
-
+ if (obj.parent.constructor != Roo.XComponent) {
+ Roo.log("Object Parent is not instance of XComponent:" + obj.name)
+ }
if (!obj.parent.modules) {
obj.parent.modules = new Roo.util.MixedCollection(false,
function(o) { return o.order + '' }