EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Coder on April 29, 2024, 01:24:41 AM



Title: layout panel expand to maxWidth
Post by: Coder on April 29, 2024, 01:24:41 AM
Code:
  $('#dlg .layout').layout('add',{
    region: 'east'
  , width: 150
  , minWidth: 150
  , maxWidth: 250

$('#dlg .layout').layout('expand','east') - expand panel only to "default"(initial or last) width.

How to expand to maxWidth ?


Title: Re: layout panel expand to maxWidth
Post by: Coder on April 29, 2024, 01:28:16 AM
now use
Code:
$('#dlg .layout').layout('panel','east').panel('resize',{width:250});
$('#dlg .layout').layout('expand','east');

its work, but panel floating from 0 position