FIX: border missing auto create config passing
[roojs1] / Roo / bootstrap / layout / Border.js
index 7e4ae57..71c57da 100644 (file)
@@ -25,9 +25,10 @@ the container size if it is not the body element.</b>
  */
 Roo.bootstrap.layout.Border = function(config){
     config = config || {};
-    
     Roo.bootstrap.layout.Border.superclass.constructor.call(this, config);
     
+    
+    
     Roo.each(Roo.bootstrap.layout.Border.regions, function(region) {
         if(config[region]){
             config[region].region = region;
@@ -56,8 +57,7 @@ Roo.extend(Roo.bootstrap.layout.Border, Roo.bootstrap.layout.Manager, {
     },
 
     // private (kinda)
-    bindRegion : function(r)
-    {
+    bindRegion : function(r){
         this.regions[r.config.region] = r;
         
         r.on("visibilitychange",    this.layout, this);
@@ -74,8 +74,6 @@ Roo.extend(Roo.bootstrap.layout.Border, Roo.bootstrap.layout.Manager, {
      */
     layout : function()
     {
-        Roo.log('calling layout!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(this);
         if(this.updating) {
             return;
         }
@@ -303,7 +301,7 @@ layout.addxtype({
             case 'Content':  // ContentPanel (el, cfg)
             case 'Scroll':  // ContentPanel (el, cfg)
             case 'View': 
-                cfg.autoCreate = true;
+                cfg.autoCreate = cfg.autoCreate || true;
                 ret = new cfg.xns[cfg.xtype](cfg); // new panel!!!!!
                 //} else {
                 //    var el = this.el.createChild();
@@ -442,6 +440,7 @@ layout.addxtype({
         
     },
     
+    
 // private
     factory : function(cfg)
     {
@@ -452,7 +451,7 @@ layout.addxtype({
         cfg.mgr = this;
         
         var r = Roo.bootstrap.layout;
-        
+        Roo.log(target);
         switch(target){
             case "north":
                 return new r.North(cfg);