Roo/BorderLayout.js
[roojs1] / Roo / BorderLayout.js
index fd1fc02..34e69b0 100644 (file)
@@ -202,11 +202,7 @@ Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
     // private
     safeBox : function(box){
         box.width = Math.max(0, box.width);
-        
-        if(box.height && box.height > 0){
-            box.height = box.height;
-        }
-        
+        box.height = Math.max(0, box.height);
         return box;
     },