Jquery UI Dialog Autosize

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Jquery UI Dialog Autosize


I'm trying to make the dialog use auto width and height, but only up to certain number of px.

If the contents in the dialog is small, I want the dialog to be small and fit the contents. By setting width and height to auto, this works great. However, if the contents is big, the dialog box gets big. What I want is to control this and set a maxWidth and maxHeight, but only when the dialog is opened. I still want to be able to resize the box larger than the max pixels afterwards...

- Tobben