Roo.layout.South = function(mgr, config){
Roo.layout.SplitRegion.call(this, mgr, config, "south", "s-resize");
if(this.split){
this.split.placement = Roo.SplitBar.BOTTOM;
this.split.orientation = Roo.SplitBar.VERTICAL;
this.split.el.addClass("x-layout-split-v");
}
var size = config.initialSize || config.height;
if(typeof size != "undefined"){
this.el.setHeight(size);
}
};
Roo.extend(Roo.layout.South, Roo.layout.SplitRegion, {
orientation: Roo.SplitBar.VERTICAL,
getBox : function(){
if(this.collapsed){
return this.collapsedEl.getBox();
}
var box = this.el.getBox();
if(this.split){
var sh = this.split.el.getHeight();
box.height += sh;
box.y -= sh;
}
return box;
},
updateBox : function(box){
if(this.split && !this.collapsed){
var sh = this.split.el.getHeight();
box.height -= sh;
box.y += sh;
this.split.el.setLeft(box.x);
this.split.el.setTop(box.y-sh);
this.split.el.setWidth(box.width);
}
if(this.collapsed){
this.updateBody(box.width, null);
}
Roo.layout.Region.prototype.updateBox.call(this, box);
}
});