Roo/BorderLayout.js
authorEdward <edward@roojs.com>
Wed, 9 Apr 2014 08:55:42 +0000 (16:55 +0800)
committerEdward <edward@roojs.com>
Wed, 9 Apr 2014 08:55:42 +0000 (16:55 +0800)
Roo/BorderLayout.js

index 34e69b0..785ce91 100644 (file)
@@ -202,7 +202,10 @@ Roo.extend(Roo.BorderLayout, Roo.LayoutManager, {
     // private
     safeBox : function(box){
         box.width = Math.max(0, box.width);
-        box.height = Math.max(0, box.height);
+        if(box.height){
+            box.height = box.height;
+        }
+        
         return box;
     },