X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/Element.fx-more.html diff --git a/docs/source/Element.fx-more.html b/docs/source/Element.fx-more.html index 65c0c748..6c3f7335 100644 --- a/docs/source/Element.fx-more.html +++ b/docs/source/Element.fx-more.html @@ -1,5 +1,6 @@ + The source code @@ -17,7 +18,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. @@ -29,8 +30,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; } @@ -38,7 +39,7 @@ function(){ } return true; }, - +
/** * Returns true if display is not "none" * @return {Boolean} @@ -46,20 +47,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. @@ -72,9 +73,9 @@ function(){ dom = me.dom, dh = Ext.DomHelper, EXTELMASKMSG = "ext-el-mask-msg", - el, + el, mask; - + if(me.getStyle("position") == "static"){ me.addClass(XMASKEDRELATIVE); } @@ -84,10 +85,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'){ @@ -103,7 +104,7 @@ function(){ } return mask; }, - +
/** * Removes a previously applied mask. */ @@ -122,7 +123,7 @@ function(){ } me.removeClass([XMASKED, XMASKEDRELATIVE]); }, - +
/** * Returns true if this element is masked * @return {Boolean} @@ -131,20 +132,18 @@ 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'; - if(Ext.isIE && Ext.isSecure){ - el.src = Ext.SSL_SECURE_URL; - } + el.src = Ext.SSL_SECURE_URL; shim = Ext.get(this.dom.parentNode.insertBefore(el, this.dom)); shim.autoBoxAdjust = false; return shim;