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;
}