remove debugging code
[roojs1] / Roo / BorderLayout.js
index 785ce91..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;
@@ -202,10 +204,7 @@ Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
     // private
     safeBox : function(box){
         box.width = Math.max(0, box.width);
-        if(box.height){
-            box.height = box.height;
-        }
-        
+        box.height = Math.max(0, box.height);
         return box;
     },