Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / form / anchoring.js
index 412bf00..ba33bb7 100644 (file)
@@ -1,50 +1,50 @@
 /*!
- * Ext JS Library 3.0.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
  * licensing@extjs.com
  * http://www.extjs.com/license
  */
-Ext.onReady(function() {\r
-    var form = new Ext.form.FormPanel({\r
-        baseCls: 'x-plain',\r
-        labelWidth: 55,\r
-        url:'save-form.php',\r
-        defaultType: 'textfield',\r
-\r
-        items: [{\r
-            fieldLabel: 'Send To',\r
-            name: 'to',\r
-            anchor:'100%'  // anchor width by percentage\r
-        },{\r
-            fieldLabel: 'Subject',\r
-            name: 'subject',\r
-            anchor: '100%'  // anchor width by percentage\r
-        }, {\r
-            xtype: 'textarea',\r
-            hideLabel: true,\r
-            name: 'msg',\r
-            anchor: '100% -53'  // anchor width by percentage and height by raw adjustment\r
-        }]\r
-    });\r
-\r
-    var window = new Ext.Window({\r
-        title: 'Resize Me',\r
-        width: 500,\r
-        height:300,\r
-        minWidth: 300,\r
-        minHeight: 200,\r
-        layout: 'fit',\r
-        plain:true,\r
-        bodyStyle:'padding:5px;',\r
-        buttonAlign:'center',\r
-        items: form,\r
-\r
-        buttons: [{\r
-            text: 'Send'\r
-        },{\r
-            text: 'Cancel'\r
-        }]\r
-    });\r
-\r
-    window.show();\r
+Ext.onReady(function() {
+    var form = new Ext.form.FormPanel({
+        baseCls: 'x-plain',
+        labelWidth: 55,
+        url:'save-form.php',
+        defaultType: 'textfield',
+
+        items: [{
+            fieldLabel: 'Send To',
+            name: 'to',
+            anchor:'100%'  // anchor width by percentage
+        },{
+            fieldLabel: 'Subject',
+            name: 'subject',
+            anchor: '100%'  // anchor width by percentage
+        }, {
+            xtype: 'textarea',
+            hideLabel: true,
+            name: 'msg',
+            anchor: '100% -53'  // anchor width by percentage and height by raw adjustment
+        }]
+    });
+
+    var window = new Ext.Window({
+        title: 'Resize Me',
+        width: 500,
+        height:300,
+        minWidth: 300,
+        minHeight: 200,
+        layout: 'fit',
+        plain:true,
+        bodyStyle:'padding:5px;',
+        buttonAlign:'center',
+        items: form,
+
+        buttons: [{
+            text: 'Send'
+        },{
+            text: 'Cancel'
+        }]
+    });
+
+    window.show();
 });
\ No newline at end of file