Roo/Element.js
authoredward <edward@roojs.com>
Wed, 29 Nov 2017 09:08:15 +0000 (17:08 +0800)
committeredward <edward@roojs.com>
Wed, 29 Nov 2017 09:08:15 +0000 (17:08 +0800)
Roo/Element.js

index 17b2d7a..b8131a7 100644 (file)
@@ -190,11 +190,22 @@ if(opt.anim.isAnimated()){
          */
         findScrollableParent : function(){
             
-            var el = this;
-//            Roo.log('D: '+JSON.stringify(D, null, 4));
+            var overflowRegex = /(auto|scroll)/;
+            
+            if(this.getStyle('position') === 'fixed'){
+                return Roo.get(document.body);
+            }
+            
+            var excludeStaticParent = this.getStyle('position') === "absolute";
+            
+            for (var parent = this; (parent = Roo.get(parent.dom.parentNode))){
+                
+            }
             
             while (
                     el && 
+                    !el.isScrollable() &&
+                    
                     (
                         !el.isScrollable() ||
                         (