From: edward Date: Tue, 9 Jan 2018 06:31:36 +0000 (+0800) Subject: roojs-core.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=4c1d19b40b5813b54e463d07e09b72b3c9c77bc1 roojs-core.js roojs-core-debug.js --- diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 1c5b1aa7a4..38cb8e3b8e 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -7174,6 +7174,7 @@ if(opt.anim.isAnimated()){ var overflowRegex = /(auto|scroll)/; if(this.getStyle('position') === 'fixed'){ + alert('first'); return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); } @@ -7186,6 +7187,7 @@ if(opt.anim.isAnimated()){ } if (overflowRegex.test(parent.getStyle('overflow') + parent.getStyle('overflow-x') + parent.getStyle('overflow-y'))){ + alert('middle'); return parent; } @@ -7206,7 +7208,7 @@ if(opt.anim.isAnimated()){ return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); } } - + alert('last'); return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); }, diff --git a/roojs-core.js b/roojs-core.js index 3ec47c698d..6f7b2acf59 100644 --- a/roojs-core.js +++ b/roojs-core.js @@ -306,10 +306,10 @@ return Roo.isSafari?(A[k]||k):k;},getPageX:function(){return this.xy[0];},getPag if(!L){return null;}var id=L.id;if(K!==true&&id&&Roo.Element.cache[id]){return Roo.Element.cache[id];}this.dom=L;this.id=id||Roo.id(L);};var El=Roo.Element;El.prototype={originalDisplay:"",visibilityMode:1,defaultUnit:"px",setVisibilityMode:function(J){this.visibilityMode=J; 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