Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / layout / anchor.js
diff --git a/examples/layout/anchor.js b/examples/layout/anchor.js
new file mode 100644 (file)
index 0000000..8b863b6
--- /dev/null
@@ -0,0 +1,18 @@
+Ext.onReady(function() {
+    Ext.create('Ext.Viewport', {
+        layout:'anchor',
+        items:[{
+            title:'Item 1',
+            html:'100% 20%',
+            anchor:'100% 20%'
+        },{
+            title:'Item 2',
+            html:'50% 30%',
+            anchor:'50% 30%'
+        },{
+            title:'Item 3',
+            html:'-100 50%',
+            anchor:'-100 50%'
+        }]
+    });
+});
\ No newline at end of file