4 Roo.layout.North = function(mgr, config){
5 Roo.layout.Region.call(this, mgr, config, "north", "n-resize");
7 this.split.placement = Roo.SplitBar.TOP;
8 this.split.orientation = Roo.SplitBar.VERTICAL;
9 this.split.el.addClass("x-layout-split-v");
11 var size = config.initialSize || config.height;
12 if(typeof size != "undefined"){
13 this.el.setHeight(size);
16 Roo.extend(Roo.layout.North, Roo.layout.SplitRegion, {
17 orientation: Roo.SplitBar.VERTICAL,
20 return this.collapsedEl.getBox();
22 var box = this.el.getBox();
24 box.height += this.split.el.getHeight();
29 updateBox : function(box){
30 if(this.split && !this.collapsed){
31 box.height -= this.split.el.getHeight();
32 this.split.el.setLeft(box.x);
33 this.split.el.setTop(box.y+box.height);
34 this.split.el.setWidth(box.width);
37 this.updateBody(box.width, null);
39 Roo.layout.Region.prototype.updateBox.call(this, box);