6 Roo.bootstrap.layout.North = function(config)
8 config.region = 'north';
9 config.cursor = 'n-resize';
11 Roo.bootstrap.layout.Split.call(this, config);
15 this.split.placement = Roo.bootstrap.SplitBar.TOP;
16 this.split.orientation = Roo.bootstrap.SplitBar.VERTICAL;
17 this.split.el.addClass("roo-layout-split-v");
19 var size = config.initialSize || config.height;
20 if(typeof size != "undefined"){
21 this.el.setHeight(size);
24 Roo.extend(Roo.bootstrap.layout.North, Roo.bootstrap.layout.Split,
26 orientation: Roo.bootstrap.SplitBar.VERTICAL,
32 return this.collapsedEl.getBox();
34 var box = this.el.getBox();
36 box.height += this.split.el.getHeight();
41 updateBox : function(box){
42 if(this.split && !this.collapsed){
43 box.height -= this.split.el.getHeight();
44 this.split.el.setLeft(box.x);
45 this.split.el.setTop(box.y+box.height);
46 this.split.el.setWidth(box.width);
49 this.updateBody(box.width, null);
51 Roo.bootstrap.layout.Region.prototype.updateBox.call(this, box);