EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Overwhelmer on February 14, 2014, 02:45:30 AM



Title: [EasyUI Layout] Move the split in specific position.
Post by: Overwhelmer on February 14, 2014, 02:45:30 AM
Hello,
I'd like to move the split in a specific position based on a click on a button.
I cannot find an easy way to do this.
It seems that the layout plugin does not have this method.

Moreover I need to change the properties for max/min Height/Width based on the browser window resize.
Even in this case I cannot fine ad easy way to do this.

Anyone can help me?


Title: Re: [EasyUI Layout] Move the split in specific position.
Post by: stworthy on February 14, 2014, 07:42:19 AM
To resize a region panel size programally, you need to get the specified region panel, call 'resize' method to resize it. Finally remember to call 'resize' method on layout to re-caculate the layout size.

Code:
var ll = $('body');  // the layout object
ll.layout('panel','west').panel('resize', {width:200});  // change the west panel size
ll.layout('resize');