EasyUI Forum
April 20, 2024, 01:29:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Window / Dialog size  (Read 5502 times)
sky-t
Full Member
***
Posts: 145


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 01, 2017, 12:15:37 AM »

Please set the 'height' property to 'auto'.
Code:
$('#dlg').dialog({
  height: 'auto'
});
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #2 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: September 01, 2017, 05:18:39 AM »

No, the width can't be adjusted regarding its content.
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #4 on: September 01, 2017, 05:49:11 AM »

Thank you stworthy,

do you have a workaround for the width property?



Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!