Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / docs / source / Element.fx-more.html
index 65c0c74..6c3f733 100644 (file)
@@ -1,5 +1,6 @@
 <html>\r
 <head>\r
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
   <title>The source code</title>\r
     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
@@ -17,7 +18,7 @@ function(){
            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
@@ -29,8 +30,8 @@ function(){
                        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
@@ -38,7 +39,7 @@ function(){
                }\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
@@ -46,20 +47,20 @@ function(){
            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
@@ -72,9 +73,9 @@ function(){
                        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
@@ -84,10 +85,10 @@ function(){
                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
@@ -103,7 +104,7 @@ function(){
                }\r
                return mask;\r
            },\r
-       \r
+\r
            <div id="method-Ext.Element-unmask"></div>/**\r
             * Removes a previously applied mask.\r
             */\r
@@ -122,7 +123,7 @@ function(){
                }\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
@@ -131,20 +132,18 @@ function(){
             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
-               if(Ext.isIE && Ext.isSecure){\r
-                   el.src = Ext.SSL_SECURE_URL;\r
-               }\r
+               el.src = Ext.SSL_SECURE_URL;\r
                shim = Ext.get(this.dom.parentNode.insertBefore(el, this.dom));\r
                shim.autoBoxAdjust = false;\r
                return shim;\r