sync
[roojs1] / Roo / bootstrap / panel / Nest.js
index 32008a3..9256dd6 100644 (file)
@@ -6,7 +6,6 @@
  * Create a new Panel, that can contain a layout.Border.
  * 
  * 
- * @param {Roo.BorderLayout} layout The layout for this panel
  * @param {String/Object} config A string to set only the title or a config object
  */
 Roo.bootstrap.panel.Nest = function(config)
@@ -31,6 +30,7 @@ Roo.bootstrap.panel.Nest = function(config)
     config.layout.monitorWindowResize = false; // turn off autosizing
     this.layout = config.layout;
     this.layout.getEl().addClass("roo-layout-nested-layout");
+    this.layout.parent = this;
     
     
     
@@ -38,6 +38,10 @@ Roo.bootstrap.panel.Nest = function(config)
 };
 
 Roo.extend(Roo.bootstrap.panel.Nest, Roo.bootstrap.panel.Content, {
+    /**
+    * @cfg {Roo.BorderLayout} layout The layout for this panel
+    */
+    layout : false,
 
     setSize : function(width, height){
         if(!this.ignoreResize(width, height)){
@@ -62,9 +66,6 @@ Roo.extend(Roo.bootstrap.panel.Nest, Roo.bootstrap.panel.Content, {
     
     setActiveState : function(active){
         this.active = active;
-        Roo.log('setActiveState !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(active);
-        Roo.log(this);
         this.setActiveClass(active);
         
         if(!active){
@@ -77,18 +78,14 @@ Roo.extend(Roo.bootstrap.panel.Nest, Roo.bootstrap.panel.Content, {
         if (!this.layout) {
             return; // should not happen..
         }
-        Roo.log(this.layout);
         var reg = false;
         for (var r in this.layout.regions) {
             reg = this.layout.getRegion(r);
-            Roo.log(reg);
             if (reg.getActivePanel()) {
-                Roo.log('Active Panel????????????????????????????');
                 //reg.showPanel(reg.getActivePanel()); // force it to activate.. 
                 reg.setActivePanel(reg.getActivePanel());
                 continue;
             }
-            
             if (!reg.panels.length) {
                 continue;
             }