From: edward Date: Tue, 15 Aug 2017 09:22:51 +0000 (+0800) Subject: Roo/bootstrap/Component.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=c9433d980a0692f8d898b3208cd46d15356caf5b;p=roojs1 Roo/bootstrap/Component.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/Component.js b/Roo/bootstrap/Component.js index 9d37a40c99..749a4e5faa 100644 --- a/Roo/bootstrap/Component.js +++ b/Roo/bootstrap/Component.js @@ -370,24 +370,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { this.el.addClass('hidden'); } - }, - - isVisible : function(deep) - { - var vis = !(this.getStyle("visibility") == "hidden" || this.getStyle("display") == "none"); - if(deep !== true || !vis){ - return vis; - } - var p = this.dom.parentNode; - while(p && p.tagName.toLowerCase() != "body"){ - if(!Roo.fly(p, '_isVisible').isVisible()){ - return false; - } - p = p.parentNode; - } - return true; } - }); \ No newline at end of file diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index a2c3a5456c..27932a6cd8 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -370,24 +370,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { this.el.addClass('hidden'); } - }, - - isVisible : function(deep) - { - var vis = !(this.getStyle("visibility") == "hidden" || this.getStyle("display") == "none"); - if(deep !== true || !vis){ - return vis; - } - var p = this.dom.parentNode; - while(p && p.tagName.toLowerCase() != "body"){ - if(!Roo.fly(p, '_isVisible').isVisible()){ - return false; - } - p = p.parentNode; - } - return true; } - }); /* diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 216caed558..7dcdb25e9d 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -11,8 +11,7 @@ var D=(typeof(A['flexy:if'])!='undefined')||(typeof(A['flexy:foreach'])!='undefi var G=F?F.child('>*[xtype]'):false;if(G){}if(G&&G.attr('xtype').split('.').pop()==cn.xtype){cn.el=G;}else{Roo.debug&&Roo.log("MISSING "+cn.xtype+" on child of "+(this.el?this.el.attr('xbuilderid'):'no parent'));Roo.debug&&Roo.log(F);Roo.debug&&Roo.log(G); Roo.debug&&Roo.log(cn);}}if(E&&D&&!cn.el&&cn.can_build_overlaid){Roo.debug&&Roo.log('skipping render');Roo.debug&&Roo.log(A);if(!cn.el){Roo.debug&&Roo.log('skipping all children');skip_children=true;}}else{cn.render&&cn.render(this[B](true));}}var H=[];if(!A.items||!A.items.length){cn.items=H; return cn;}var I=A.items;delete A.items;if(!skip_children){for(var i=0;i