* 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;
// 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;
},