examples/dialog/hello.js
authorAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:26:23 +0000 (15:26 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:26:23 +0000 (15:26 +0800)
examples/dialog/hello.js

index efc139d..d33336e 100644 (file)
@@ -41,7 +41,7 @@ var HelloWorld = {
         var _this = this;
         this.dialog = Roo.factory({
             xns : Roo,
-            xtype : 'BasicDialog',
+            xtype : 'LayoutDialog',
             autoTabs:true,
             width:500,
             height:300,
@@ -49,6 +49,18 @@ var HelloWorld = {
             minWidth:300,
             minHeight:250,
             proxyDrag: true,
+            center : {
+                xtype: 'LayoutRegion',
+                xns: Roo
+            },
+            items : [
+                {
+                    xtype: 'ContentPanel',
+                    xns: Roo,
+                    region : "center",
+                    
+                }
+            ],
             buttons : [
                 {
                     xtype : 'Button',