X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_layout_South.js.html;fp=docs%2Fsrc%2FRoo_bootstrap_layout_South.js.html;h=0217d85059abcb5573546f99e49c92cd606def2a;hb=9ff8ded6bbbd258ecd646184ba26020874e2c085;hp=0000000000000000000000000000000000000000;hpb=2542b67d1a0768025056f2f330bfe50b64d1ad38;p=roojs1 diff --git a/docs/src/Roo_bootstrap_layout_South.js.html b/docs/src/Roo_bootstrap_layout_South.js.html new file mode 100644 index 0000000000..0217d85059 --- /dev/null +++ b/docs/src/Roo_bootstrap_layout_South.js.html @@ -0,0 +1,50 @@ +
+
+
+
+Roo.bootstrap.layout.South = function(config){
+ config.region = 'south';
+ config.cursor = 's-resize';
+ Roo.bootstrap.layout.Split.call(this, config);
+ if(this.split){
+ this.split.placement = Roo.bootstrap.SplitBar.BOTTOM;
+ this.split.orientation = Roo.bootstrap.SplitBar.VERTICAL;
+ this.split.el.addClass("roo-layout-split-v");
+ }
+ var size = config.initialSize || config.height;
+ if(typeof size != "undefined"){
+ this.el.setHeight(size);
+ }
+};
+
+Roo.extend(Roo.bootstrap.layout.South, Roo.bootstrap.layout.Split, {
+ orientation: Roo.bootstrap.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.bootstrap.layout.Region.prototype.updateBox.call(this, box);
+ }
+});
+
\ No newline at end of file