FIX: border missing auto create config passing
[roojs1] / Roo / bootstrap / layout / Border.js
index d55871d..71c57da 100644 (file)
@@ -25,11 +25,9 @@ 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.log('Border construct!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-    Roo.log(config);
     
-    Roo.bootstrap.layout.Border.superclass.constructor.call(this, config);
     
     Roo.each(Roo.bootstrap.layout.Border.regions, function(region) {
         if(config[region]){
@@ -51,7 +49,6 @@ Roo.extend(Roo.bootstrap.layout.Border, Roo.bootstrap.layout.Manager, {
      */
     addRegion : function(config)
     {
-        Roo.log('add region!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
         if(!this.regions[config.region]){
             var r = this.factory(config);
            this.bindRegion(r);
@@ -304,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();