EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jwilliquor on August 10, 2012, 07:49:33 AM



Title: Resize West Layout
Post by: jwilliquor on August 10, 2012, 07:49:33 AM
All,

I have a layout based on demo/layout.html file.  I'm trying to figure out how to programmatically resize the west portion of the layout and then have the center portion auto resize accordingly.  Can someone point me in the right direction?

Thanks
Justin Will


Title: Re: Resize West Layout
Post by: stworthy on August 12, 2012, 06:34:12 PM
To resize the west portion of layout, get the west panel and then call its 'resize' method:
Code:
var p = $('body').layout('panel','west');  // get the west panel
p.panel('resize',{width:100});  // change the width of west panel
$('body').layout('resize');


Title: Re: Resize West Layout
Post by: jwilliquor on August 13, 2012, 08:58:20 AM
Worked like a charm.  Thank you so much.

Justin