EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: zurfero on July 11, 2015, 05:43:52 AM



Title: Help to get expand layout panel without fix it
Post by: zurfero 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.


Title: Re: Help to get expand layout panel without fix it
Post by: jarry on July 11, 2015, 05:16:57 PM
Please refer to http://jsfiddle.net/jpqxorq1/7/


Title: Re: Help to get expand layout panel without fix it
Post by: zurfero on July 12, 2015, 10:17:24 PM
Hello Jarry ... Thanks for your help :)

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.


Title: Re: Help to get expand layout panel without fix it
Post by: jarry 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/


Title: Re: Help to get expand layout panel without fix it
Post by: zurfero on July 13, 2015, 05:19:14 AM
Now is perfect!!! :)

Thank you very much for your help!!!