EasyUI Forum
May 20, 2024, 11:55:20 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: Help to get expand layout panel without fix it  (Read 8189 times)
zurfero
Newbie
*
Posts: 15


View Profile
« on: July 11, 2015, 05:43:52 AM »

Hello.
I would need help to get this funcionallity please.

If you see this example http://jsfiddle.net/zurfero/jpqxorq1/

First, click on collapsed panel -> Filter Workers (Click here) , as you can see panel show but when mouse leave collapsed automatically and not fix it.

When click on Show Workers button panel west expand, but I need panel not fix , I mean , I need when click button panel work the same as when panel it's collapsed and you click on Filter Workers (Click here)...,

That's it's possible?? I cannot see in documentation any method for get it.

I hope you can help me.

Thank you very much in advance.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: July 11, 2015, 05:16:57 PM »

Please refer to http://jsfiddle.net/jpqxorq1/7/
Logged
zurfero
Newbie
*
Posts: 15


View Profile
« Reply #2 on: July 12, 2015, 10:17:24 PM »

Hello Jarry ... Thanks for your help Smiley

Unfortunately, it's not exactly what I want.
If you ever look at the example set at first (http://jsfiddle.net/zurfero/jpqxorq1/), when you click on the column panel west (Filter Workers (Click here)) you can see how panel west expand without the central panel (Center) moves.(The letters of the central panel are not displayed).

What method is used when you click on the column of panel west (Filter Workers (Click here))? I would like get the same effect,expand west panel without the central panel moves.

I hope I explained better this time, sorry for my bad english.

Thanks again for your help.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: July 13, 2015, 12:47:18 AM »

If you just want to move the west panel over the layout without resizing the center panel, please trigger the 'click' event on the west panel.
Code:
$('#layout_workers').layout('panel', 'expandWest').panel('panel').trigger('click');

The updated example is available from http://jsfiddle.net/jpqxorq1/8/
Logged
zurfero
Newbie
*
Posts: 15


View Profile
« Reply #4 on: July 13, 2015, 05:19:14 AM »

Now is perfect!!! Smiley

Thank you very much for your help!!!
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!