X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/core/Element.fx-more.js diff --git a/src/core/Element.fx-more.js b/src/core/Element.fx-more.js index 9dcce0b3..036d6444 100644 --- a/src/core/Element.fx-more.js +++ b/src/core/Element.fx-more.js @@ -1,6 +1,6 @@ /*! - * Ext JS Library 3.1.0 - * Copyright(c) 2006-2009 Ext JS, LLC + * Ext JS Library 3.1.1 + * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ @@ -16,7 +16,7 @@ function(){ XMASKED = "x-masked", XMASKEDRELATIVE = "x-masked-relative", data = Ext.Element.data; - + return { /** * Checks whether the element is currently visible using both visibility and display properties. @@ -28,8 +28,8 @@ function(){ p = this.dom.parentNode; if(deep !== true || !vis){ return vis; - } - while(p && !/body/i.test(p.tagName)){ + } + while(p && !/^body/i.test(p.tagName)){ if(!Ext.fly(p, '_isVisible').isVisible()){ return false; } @@ -37,7 +37,7 @@ function(){ } return true; }, - + /** * Returns true if display is not "none" * @return {Boolean} @@ -45,20 +45,20 @@ function(){ isDisplayed : function() { return !this.isStyle(DISPLAY, NONE); }, - + /** * Convenience method for setVisibilityMode(Element.DISPLAY) * @param {String} display (optional) What to set display to when visible * @return {Ext.Element} this */ - enableDisplayMode : function(display){ + enableDisplayMode : function(display){ this.setVisibilityMode(Ext.Element.DISPLAY); if(!Ext.isEmpty(display)){ data(this.dom, 'originalDisplay', display); } return this; }, - + /** * Puts a mask over this element to disable user interaction. Requires core.css. * This method can only be applied to elements which accept child nodes. @@ -71,9 +71,9 @@ function(){ dom = me.dom, dh = Ext.DomHelper, EXTELMASKMSG = "ext-el-mask-msg", - el, + el, mask; - + if(me.getStyle("position") == "static"){ me.addClass(XMASKEDRELATIVE); } @@ -83,10 +83,10 @@ function(){ if((el = data(dom, 'mask'))){ el.remove(); } - + mask = dh.append(dom, {cls : "ext-el-mask"}, true); data(dom, 'mask', mask); - + me.addClass(XMASKED); mask.setDisplayed(true); if(typeof msg == 'string'){ @@ -102,7 +102,7 @@ function(){ } return mask; }, - + /** * Removes a previously applied mask. */ @@ -121,7 +121,7 @@ function(){ } me.removeClass([XMASKED, XMASKEDRELATIVE]); }, - + /** * Returns true if this element is masked * @return {Boolean} @@ -130,14 +130,14 @@ function(){ var m = data(this.dom, 'mask'); return m && m.isVisible(); }, - + /** * Creates an iframe shim for this element to keep selects and other windowed objects from * showing through. * @return {Ext.Element} The new shim element */ createShim : function(){ - var el = document.createElement('iframe'), + var el = document.createElement('iframe'), shim; el.frameBorder = '0'; el.className = 'ext-shim';