EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on January 22, 2016, 06:16:16 PM



Title: East, center & west Panel with fit on east panel
Post by: devnull on January 22, 2016, 06:16:16 PM
I have tried all the combinations I can think of but I am unable to get the east panel to fit the available width, with the west and center panels having fixed widths ??

Also, I do not want to nest another layout inside the center panel but want to use just one layout with 3 columns.

http://jsfiddle.net/54v8nacp/17/

What am I doing wrong ??

Code:
  <div region="east" style="background:gray" fit="true"></div>
  <div region="east" style="width:auto;background:gray"></div>
  <div region="east" style="width:100%;background:gray"></div>




Title: Re: East, center & west Panel with fit on east panel
Post by: jarry on January 22, 2016, 07:36:52 PM
Please try this:
http://jsfiddle.net/54v8nacp/18/


Title: Re: East, center & west Panel with fit on east panel
Post by: devnull on January 23, 2016, 12:38:05 AM
Thanks Jarry, but I was trying to achieve this using the standard code without attaching any additional events.

I am guessing from your reply that it cannot be done without adding custom code.

It would be nice if it could automatically calculate any width which is not specified, so that if you have west, center and east, and you only specify 2 widths, the third would be calculated automatically :-)