colorbrewer/colorbrewer-bg.css
[roojs1] / roojs-core-debug.js
index 2137b2d..829d252 100644 (file)
@@ -8874,13 +8874,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){