Skip to main content

Search and Top Navigation

#3687 closed bug (fixed)

Opened December 20, 2008 09:12PM UTC

Closed December 21, 2008 06:41PM UTC

no way to resize after changing content

Reported by: wichert Owned by:
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

I have a site where I have a multi-page form in a modal dialog. This is implemented using ajax forms and changing the inner html of the modal dialog. This works well, except that the dialog widget does not resize or reposition, after I change its contents. I am fine with manually calling into the dialog but there does not appear to be a hook to do that either.

My current workaround is to remove the fixed height from all divs and let the browser itself figure out how tall the window should be. This works fine, which suggests that perhaps the dialog widget does not need to set the fixed height at all.

Attachments (0)
Change History (1)

Changed December 21, 2008 06:41PM UTC by scottgonzalez comment:1

milestone: TBD1.6
resolution: → fixed
status: newclosed

Dialogs now support height: 'auto', but a width is still required. I don't believe that repositioning should happen automatically; see this thread for more details.

You can tell the dialog to reposition itself with the following code:

$(el).dialog('option', 'position', $(el).dialog('option', 'position'));