X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-core-debug.js;h=76078d9fdbc77d0970f954974c37e3d2fc4efc12;hb=acb648c2a7f5714b0a2569618f96999adcb49c91;hp=6278a7b8d81426fd169c85f763b04f4750a398a8;hpb=f1cc40a7d7c3ae9cc77eb34ab4ec30ce4fca5c7a;p=roojs1 diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 6278a7b8d8..76078d9fdb 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -15992,13 +15992,20 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, { var hp = this.parent ? 1 : 0; Roo.debug && Roo.log(this); + var tree = this._tree ? this._tree() : this.tree(); + + if (!el && typeof(this.parent) == 'string' && this.parent.substring(0,1) == '#') { // if parent is a '#.....' string, then let's use that.. var ename = this.parent.substr(1); this.parent = false; Roo.debug && Roo.log(ename); switch (ename) { - case 'bootstrap-body' : + case 'bootstrap-body': + if (typeof(tree.el) != 'undefined' && tree.el == document.body) { + break; + } + if (typeof(Roo.bootstrap.Body) != 'undefined') { this.parent = { el : new Roo.bootstrap.Body() }; Roo.debug && Roo.log("setting el to doc body"); @@ -16026,7 +16033,6 @@ Roo.extend(Roo.XComponent, Roo.util.Observable, { Roo.debug && Roo.log("this.parent.el:"); Roo.debug && Roo.log(this.parent.el); - var tree = this._tree ? this._tree() : this.tree(); // altertive root elements ??? - we need a better way to indicate these. var is_alt = Roo.XComponent.is_alt ||