Roo/Element.js
authorAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:12:26 +0000 (17:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Dec 2011 09:12:26 +0000 (17:12 +0800)
Roo/Element.js

index d9f65c6..17eaa39 100644 (file)
@@ -2072,7 +2072,8 @@ if(opt.anim.isAnimated()){
          * @param {String} msgCls (optional) A css class to apply to the msg element
          * @return {Element} The mask  element
          */
-        mask : function(msg, msgCls){
+        mask : function(msg, msgCls)
+        {
             if(this.getStyle("position") == "static"){
                 this.setStyle("position", "relative");
             }
@@ -2081,6 +2082,7 @@ if(opt.anim.isAnimated()){
             }
             this.addClass("x-masked");
             this._mask.setDisplayed(true);
+            var p = this.getPositioning();
             if(typeof msg == 'string'){
                 if(!this._maskMsg){
                     this._maskMsg = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask-msg", cn:{tag:'div'}}, true);
@@ -2090,10 +2092,14 @@ if(opt.anim.isAnimated()){
                 mm.dom.firstChild.innerHTML = msg;
                 mm.setDisplayed(true);
                 mm.center(this);
+                mm.setStyle('z-index', parseInt(p['z-index']) + 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);
+            
+            
             return this._mask;
         },