remove debugging code
[roojs1] / Roo / BorderLayout.js
index 1cf876f..aeda210 100644 (file)
@@ -122,7 +122,9 @@ Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
      * Performs a layout update.
      */
     layout : function(){
-        if(this.updating) return;
+        if(this.updating) {
+            return;
+        }
         var size = this.getViewSize();
         var w = size.width;
         var h = size.height;
@@ -474,6 +476,7 @@ layout.addxtype({
                 if (typeof(Roo[cfg.xtype]) != 'undefined') {
                     
                     ret = new Roo[cfg.xtype](cfg); // new panel!!!!!
+                    this.add(region, ret);
                 } else {
                 
                     alert("Can not add '" + cfg.xtype + "' to BorderLayout");