Roo/BorderLayout.js
authorEdward <edward@roojs.com>
Wed, 9 Apr 2014 08:56:46 +0000 (16:56 +0800)
committerEdward <edward@roojs.com>
Wed, 9 Apr 2014 08:56:46 +0000 (16:56 +0800)
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;
     },