XMASKED = "x-masked",\r
XMASKEDRELATIVE = "x-masked-relative",\r
data = Ext.Element.data;\r
- \r
+\r
return {\r
<div id="method-Ext.Element-isVisible"></div>/**\r
* Checks whether the element is currently visible using both visibility and display properties.\r
p = this.dom.parentNode;\r
if(deep !== true || !vis){\r
return vis;\r
- } \r
- while(p && !/body/i.test(p.tagName)){\r
+ }\r
+ while(p && !/^body/i.test(p.tagName)){\r
if(!Ext.fly(p, '_isVisible').isVisible()){\r
return false;\r
}\r
}\r
return true;\r
},\r
- \r
+\r
<div id="method-Ext.Element-isDisplayed"></div>/**\r
* Returns true if display is not "none"\r
* @return {Boolean}\r
isDisplayed : function() {\r
return !this.isStyle(DISPLAY, NONE);\r
},\r
- \r
+\r
<div id="method-Ext.Element-enableDisplayMode"></div>/**\r
* Convenience method for setVisibilityMode(Element.DISPLAY)\r
* @param {String} display (optional) What to set display to when visible\r
* @return {Ext.Element} this\r
*/\r
- enableDisplayMode : function(display){ \r
+ enableDisplayMode : function(display){\r
this.setVisibilityMode(Ext.Element.DISPLAY);\r
if(!Ext.isEmpty(display)){\r
data(this.dom, 'originalDisplay', display);\r
}\r
return this;\r
},\r
- \r
+\r
<div id="method-Ext.Element-mask"></div>/**\r
* Puts a mask over this element to disable user interaction. Requires core.css.\r
* This method can only be applied to elements which accept child nodes.\r
dom = me.dom,\r
dh = Ext.DomHelper,\r
EXTELMASKMSG = "ext-el-mask-msg",\r
- el, \r
+ el,\r
mask;\r
- \r
+\r
if(me.getStyle("position") == "static"){\r
me.addClass(XMASKEDRELATIVE);\r
}\r
if((el = data(dom, 'mask'))){\r
el.remove();\r
}\r
- \r
+\r
mask = dh.append(dom, {cls : "ext-el-mask"}, true);\r
data(dom, 'mask', mask);\r
- \r
+\r
me.addClass(XMASKED);\r
mask.setDisplayed(true);\r
if(typeof msg == 'string'){\r
}\r
return mask;\r
},\r
- \r
+\r
<div id="method-Ext.Element-unmask"></div>/**\r
* Removes a previously applied mask.\r
*/\r
}\r
me.removeClass([XMASKED, XMASKEDRELATIVE]);\r
},\r
- \r
+\r
<div id="method-Ext.Element-isMasked"></div>/**\r
* Returns true if this element is masked\r
* @return {Boolean}\r
var m = data(this.dom, 'mask');\r
return m && m.isVisible();\r
},\r
- \r
+\r
<div id="method-Ext.Element-createShim"></div>/**\r
* Creates an iframe shim for this element to keep selects and other windowed objects from\r
* showing through.\r
* @return {Ext.Element} The new shim element\r
*/\r
createShim : function(){\r
- var el = document.createElement('iframe'), \r
+ var el = document.createElement('iframe'),\r
shim;\r
el.frameBorder = '0';\r
el.className = 'ext-shim';\r