I can't figure out how to set the height for the jquery ui dialog correctly.
I want it to display height, although there is a lot of content present, but if it exceeds 400 pixels, then I want a scroll bar.
So, if the content is 200 pixels high, then the dialog should have a height of 200 pixels.
If the content has a height of more than 400 pixels, then the dialog should not expand to 400 pixels, and the scroll bar should be visible.
I still have this:
$("#popup").dialog({
modal: true,
autoOpen: false
});
source
share