Roo/form/ComboBoxArray.js
[roojs1] / Roo / Element.js
index cc7571b..0731add 100644 (file)
@@ -2074,12 +2074,11 @@ if(opt.anim.isAnimated()){
          */
         mask : function(msg, msgCls)
         {
-            if(this.getStyle("position") == "static"){
+            if(this.getStyle("position") == "static" && this.dom.tagName !== 'BODY'){
                 this.setStyle("position", "relative");
             }
             if(!this._mask){
-//                this._mask = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask"}, true);
-                this._mask = this.createChild({cls:"roo-el-mask"});
+                this._mask = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask"}, true);
             }
             this.addClass("x-masked");
             this._mask.setDisplayed(true);
@@ -2124,7 +2123,6 @@ if(opt.anim.isAnimated()){
          * it is cached for reuse.
          */
         unmask : function(removeEl){
-//            this.setStyle("position", "static");
             if(this._mask){
                 if(removeEl === true){
                     this._mask.remove();