EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: korenanzo on October 01, 2015, 07:28:39 AM



Title: two panels side by side without using layout()
Post by: korenanzo on October 01, 2015, 07:28:39 AM
Hi all,

I'd like to have two panels placed into another panel; the two inner must have the same  y.

I don't want use layout() , for now.

when I try to do it, I only get one panel above the other.

http://jsfiddle.net/korenanzo/0fw6rk9y/27/

How can I achieve my goal?

thanks,
Ric


Title: Re: two panels side by side without using layout()
Post by: jarry on October 02, 2015, 06:40:19 AM
Please refer to this example http://jsfiddle.net/0fw6rk9y/31/


Title: Re: two panels side by side without using layout()
Post by: korenanzo on October 02, 2015, 08:44:09 AM
Well, it works :)

Could be usefull to have  into all the panels as defaults

   params.bodyCls = 'r1';
       params.cls = 'a1';


Thanks,
RIc


Title: Re: two panels side by side without using layout()
Post by: jarry on October 03, 2015, 03:49:36 AM
You can override the 'bodyCls' and 'cls' properties value for all panels.
Code:
$.extend($.fn.panel.defaults, {
  cls: 'a1',
  bodyCls: 'r1'
});