Pman.Builder.View.js
authorEdward <edward@roojs.com>
Mon, 24 Mar 2014 05:01:37 +0000 (13:01 +0800)
committerEdward <edward@roojs.com>
Mon, 24 Mar 2014 05:01:37 +0000 (13:01 +0800)
Pman.Builder.View.js

index 6d72b3b..8358419 100644 (file)
@@ -402,17 +402,16 @@ Pman.Builder.View = {
         if (cfg.items[0]['|xns'] == 'Roo.bootstrap') {
             
             Roo.log("bootstrap build!?");
+            if (cfg.items[0].xtype =='Modal' ) {
+                this.bootstrapModal.show();
+            }
+            
             var top = new Roo.bootstrap.Body({});
             top.onRender(false,false);
-            Roo.log('cfg');
-            Roo.log(cfg);
-            this.bootstrapModal = top.addxtype(cfg.items[0]);
             
-            this.applyFlexy(top);
+            this.bootstrapModal = top.addxtype(cfg.items[0]).items[0];
             
-            if (cfg.items[0].xtype =='Modal' ) {
-                this.bootstrapModal.show();
-            }
+            this.applyFlexy(top);
             
             return;
         }