examples/layout/viewpanel.bjs
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 10:37:32 +0000 (18:37 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 10:37:32 +0000 (18:37 +0800)
examples/layout/viewpanel.js

examples/layout/viewpanel.bjs
examples/layout/viewpanel.js

index 934f37f..089d735 100644 (file)
@@ -7,7 +7,7 @@
     "items": [
         {
             "listeners": {
-                "activate": "function (_self)\n{\n    Roo.log(_self);\n    \n    \n}"
+                "activate": "function (_self)\n{\n    Roo.log(_self);\n    \n    if(this.panel.active){\n        _this.view = this.panel.view;\n    }\n}"
             },
             "xtype": "ContentPanel",
             "|xns": "Roo",
index 9074895..7e597f6 100644 (file)
@@ -22,7 +22,9 @@ viewpanel = new Roo.XComponent({
                 {
                     Roo.log(_self);
                     
-                    
+                    if(this.panel.active){
+                        _this.view = this.panel.view;
+                    }
                 }
             },
             items : [