I can't seem to understand how to set the height correctly for the jquery ui dialog.
I want it to display the height to however much content is present, but if it exceeds 400 pixels, then I want a scroll bar.
So, if the content has 200 pixels in height, then the dialog should have a height of 200 pixels.
If the content has a height larger than 400 pixels, then the dialog shouldn't expand past 400 pixels and a scroll bar should be visible.
I have this so far:
$("#popup").dialog({
modal: true,
autoOpen: false
});