EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on August 31, 2017, 09:16:57 PM



Title: Window / Dialog size
Post by: sky-t on August 31, 2017, 09:16:57 PM
Hi there,

is there an easy way to size / resize the dialog and window to fit to the contents size?


Thanks a lot


Title: Re: Window / Dialog size
Post by: stworthy on September 01, 2017, 12:15:37 AM
Please set the 'height' property to 'auto'.
Code:
$('#dlg').dialog({
  height: 'auto'
});


Title: Re: Window / Dialog size
Post by: sky-t on September 01, 2017, 02:23:55 AM
Hello stworthy,

thank you for your replay.
Does this also work with the width-property?


Thanks again


Title: Re: Window / Dialog size
Post by: stworthy on September 01, 2017, 05:18:39 AM
No, the width can't be adjusted regarding its content.


Title: Re: Window / Dialog size
Post by: sky-t on September 01, 2017, 05:49:11 AM
Thank you stworthy,

do you have a workaround for the width property?



Thanks