Opened 12 years ago

Closed 12 years ago

#3687 closed bug (fixed)

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.

Change History (1)

comment:1 Changed 12 years ago by Scott González

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'));
Note: See TracTickets for help on using tickets.