Roo/Template.js
[roojs1] / Roo / Element.js
index 3783203..8e52671 100644 (file)
@@ -2086,13 +2086,18 @@ if(opt.anim.isAnimated()){
             // we wander
             var z = 0;
             var dom = this.dom
-            while (dom) {
+            while (dom && dom.style) {
                 if (!isNaN(parseInt(dom.style.zIndex))) {
                     z = Math.max(z, parseInt(dom.style.zIndex));
                 }
                 dom = dom.parentNode;
             }
-            
+            // if we are masking the body - then it hides everything..
+            if (this.dom == document.body) {
+                z = 1000000;
+                this._mask.setWidth(Roo.lib.Dom.getDocumentWidth());
+                this._mask.setHeight(Roo.lib.Dom.getDocumentHeight());
+            }
            
             if(typeof msg == 'string'){
                 if(!this._maskMsg){