From: edward Date: Tue, 9 Jan 2018 06:27:42 +0000 (+0800) Subject: roojs-core.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1f56047841f699451f270b19eed1973ddcf10d64 roojs-core.js roojs-core-debug.js --- diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 3d26a89863..1c5b1aa7a4 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -7190,22 +7190,23 @@ if(opt.anim.isAnimated()){ } if(parent.dom.nodeName.toLowerCase() == 'body'){ + + alert('is android : ' + Roo.isAndroid); + alert('is ios : ' + Roo.isIOS); + + if(Roo.isAndroid){ + alert('Is Android'); + return Roo.get(document.documentElement); + } + + if(!Roo.isAndroid){ + alert('not android'); + } + return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); } } - alert('is android : ' + Roo.isAndroid); - alert('is ios : ' + Roo.isIOS); - - if(Roo.isAndroid){ - alert('Is Android'); - return Roo.get(document.documentElement); - } - - if(!Roo.isAndroid){ - alert('not android'); - } - return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); }, diff --git a/roojs-core.js b/roojs-core.js index b4b2c31ea6..3ec47c698d 100644 --- a/roojs-core.js +++ b/roojs-core.js @@ -307,8 +307,8 @@ if(!L){return null;}var id=L.id;if(K!==true&&id&&Roo.Element.cache[id]){return R return this;},enableDisplayMode:function(J){this.setVisibilityMode(El.DISPLAY);if(typeof J!="undefined"){this.originalDisplay=J;}return this;},findParent:function(J,K,L){var p=this.dom,b=document.body,M=0,dq=Roo.DomQuery,N;K=K||50;if(typeof K!="number"){N=Roo.getDom(K); K=10;}while(p&&p.nodeType==1&&M