EasyUI Forum
May 21, 2024, 03:03:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [EasyUI Layout] Move the split in specific position.  (Read 5896 times)
Overwhelmer
Newbie
*
Posts: 6


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


View Profile Email
« Reply #1 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');
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!