*/
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);
* it is cached for reuse.
*/
unmask : function(removeEl){
-// this.setStyle("position", "static");
if(this._mask){
if(removeEl === true){
this._mask.remove();