EasyUI Forum
April 25, 2024, 02:27:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Resize West Layout  (Read 12331 times)
jwilliquor
Newbie
*
Posts: 15


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
Logged
jwilliquor
Newbie
*
Posts: 15


View Profile
« Reply #2 on: August 13, 2012, 08:58:20 AM »

Worked like a charm.  Thank you so much.

Justin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!