Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git] / docs / source / Element.legacy.html
index 1272b9a..35ddda5 100644 (file)
@@ -1,45 +1,52 @@
-<html>\r
-<head>\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
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js">/**\r
- * @class Ext.Element\r
- */\r
-Ext.Element.addMethods({\r
-    <div id="method-Ext.Element-autoHeight"></div>/**\r
-     * Measures the element's content height and updates height to match. Note: this function uses setTimeout so\r
-     * the new height may not be available immediately.\r
-     * @param {Boolean} animate (optional) Animate the transition (defaults to false)\r
-     * @param {Float} duration (optional) Length of the animation in seconds (defaults to .35)\r
-     * @param {Function} onComplete (optional) Function to call when animation completes\r
-     * @param {String} easing (optional) Easing method to use (defaults to easeOut)\r
-     * @return {Ext.Element} this\r
-     */\r
-    autoHeight : function(animate, duration, onComplete, easing){\r
-        var oldHeight = this.getHeight();\r
-        this.clip();\r
-        this.setHeight(1); // force clipping\r
-        setTimeout(function(){\r
-            var height = parseInt(this.dom.scrollHeight, 10); // parseInt for Safari\r
-            if(!animate){\r
-                this.setHeight(height);\r
-                this.unclip();\r
-                if(typeof onComplete == "function"){\r
-                    onComplete();\r
-                }\r
-            }else{\r
-                this.setHeight(oldHeight); // restore original height\r
-                this.setHeight(height, animate, duration, function(){\r
-                    this.unclip();\r
-                    if(typeof onComplete == "function") onComplete();\r
-                }.createDelegate(this), easing);\r
-            }\r
-        }.createDelegate(this), 0);\r
-        return this;\r
-    }\r
-});</pre>    \r
-</body>\r
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.2.1
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
+ * @class Ext.Element
+ */
+Ext.Element.addMethods({
+    <div id="method-Ext.Element-autoHeight"></div>/**
+     * Measures the element's content height and updates height to match. Note: this function uses setTimeout so
+     * the new height may not be available immediately.
+     * @param {Boolean} animate (optional) Animate the transition (defaults to false)
+     * @param {Float} duration (optional) Length of the animation in seconds (defaults to .35)
+     * @param {Function} onComplete (optional) Function to call when animation completes
+     * @param {String} easing (optional) Easing method to use (defaults to easeOut)
+     * @return {Ext.Element} this
+     */
+    autoHeight : function(animate, duration, onComplete, easing){
+        var oldHeight = this.getHeight();
+        this.clip();
+        this.setHeight(1); // force clipping
+        setTimeout(function(){
+            var height = parseInt(this.dom.scrollHeight, 10); // parseInt for Safari
+            if(!animate){
+                this.setHeight(height);
+                this.unclip();
+                if(typeof onComplete == "function"){
+                    onComplete();
+                }
+            }else{
+                this.setHeight(oldHeight); // restore original height
+                this.setHeight(height, animate, duration, function(){
+                    this.unclip();
+                    if(typeof onComplete == "function") onComplete();
+                }.createDelegate(this), easing);
+            }
+        }.createDelegate(this), 0);
+        return this;
+    }
+});</pre>    
+</body>
 </html>
\ No newline at end of file