X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FBorderLayout.js;h=aeda210f7c200362e509c851de83886ab41bfa94;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=fd1fc02969a9e5fd2c62da44da202c5f6ea63baa;hpb=ba93a5bf70ca1d930b9fc19d086a0d8480b6abe8;p=roojs1 diff --git a/Roo/BorderLayout.js b/Roo/BorderLayout.js index fd1fc02969..aeda210f7c 100644 --- a/Roo/BorderLayout.js +++ b/Roo/BorderLayout.js @@ -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,11 +204,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; },