roojs-debug.js
authorAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:27:17 +0000 (17:27 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:27:17 +0000 (17:27 +0800)
roojs-debug.js

index 7316b66..20fdc53 100644 (file)
@@ -8870,7 +8870,18 @@ if(opt.anim.isAnimated()){
             }
             this.addClass("x-masked");
             this._mask.setDisplayed(true);
-            var p = this.getPositioning();
+            
+            // we wander
+            var z = 0;
+            var dom = this.dom
+            while (dom) {
+                if (!isNaN(parseInt(dom.style.zIndex))) {
+                    z = Math.max(z, parseInt(dom.style.zIndex));
+                }
+                dom = dom.parentNode;
+            }
+            
+           
             if(typeof msg == 'string'){
                 if(!this._maskMsg){
                     this._maskMsg = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask-msg", cn:{tag:'div'}}, true);
@@ -8880,12 +8891,12 @@ if(opt.anim.isAnimated()){
                 mm.dom.firstChild.innerHTML = msg;
                 mm.setDisplayed(true);
                 mm.center(this);
-                mm.setStyle('z-index', parseInt(p['z-index']) + 102);
+                mm.setStyle('z-index', z + 102);
             }
             if(Roo.isIE && !(Roo.isIE7 && Roo.isStrict) && this.getStyle('height') == 'auto'){ // ie will not expand full height automatically
                 this._mask.setHeight(this.getHeight());
             }
-            this._mask.setStyle('z-index', parseInt(p['z-index']) + 100);
+            this._mask.setStyle('z-index', z + 100);
             
             return this._mask;
         },