Roo/Element.js
authoredward <edward@roojs.com>
Tue, 9 Jan 2018 06:06:53 +0000 (14:06 +0800)
committeredward <edward@roojs.com>
Tue, 9 Jan 2018 06:06:53 +0000 (14:06 +0800)
Roo/Element.js

index d20e99f..d729596 100644 (file)
@@ -188,11 +188,12 @@ if(opt.anim.isAnimated()){
         /**
          * Looks at  the scrollable parent element
          */
-        findScrollableParent : function(){
+        findScrollableParent : function()
+        {
             var overflowRegex = /(auto|scroll)/;
             
             if(this.getStyle('position') === 'fixed'){
-                
+                return Roo.isIOS ? Roo.get(document.body) : Roo.get(document.documentElement);
             }
             
             var excludeStaticParent = this.getStyle('position') === "absolute";
@@ -204,16 +205,14 @@ if(opt.anim.isAnimated()){
                 }
                 
                 if (overflowRegex.test(parent.getStyle('overflow') + parent.getStyle('overflow-x') + parent.getStyle('overflow-y'))){
-                    alert('test');
                     return parent;
                 }
                 
                 if(parent.dom.nodeName.toLowerCase() == 'body'){
-                    alert('body');
                     return Roo.isIOS ? Roo.get(document.body) : Roo.get(document.documentElement);
                 }
             }
-            Roo.log('in???');
+            
             return Roo.isIOS ? Roo.get(document.body) : Roo.get(document.documentElement);
         },