Skip to main content

Search and Top Navigation

#5637 closed bug (fixed)

Opened May 20, 2010 05:13AM UTC

Closed May 18, 2011 01:34PM UTC

Last modified July 18, 2011 01:54PM UTC

Dialog: Dimensions of reused overlay may cause scrollbars

Reported by: mkemmerling Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.1
Keywords: dialog overlay Cc:
Blocked by: Blocking:
Description

The dialog overlay reuses old instances to work around an IE memory leak with alpha transparency. This might result in a too large overlay if the window is rescaled in between successive uses of the dialog.

To reproduce the bug open the modal form demo in a wide browser window and

1. Open the 'Create new user' dialog and cancel it.

2. Make the browser window smaller.

3. Reopen the dialog.

The window has now a horizontal scroll bar due to a too wide overlay.

Workaround: Set the overlay's width and height to 0, either before destroying it or before setting its dimensions on creation.

Attachments (0)
Change History (4)

Changed May 06, 2011 03:52PM UTC by k_borchers comment:1

I have sent a pull request at https://github.com/jquery/jquery-ui/pull/211.

Thanks

Changed May 18, 2011 01:34PM UTC by scottgonzalez comment:2

status: newopen
summary: Dimensions of reused dialog overlayDialog: Dimensions of reused overlay may cause scrollbars

Changed May 18, 2011 01:34PM UTC by Scott González comment:3

resolution: → fixed
status: openclosed

Dialog: Reduce old overlay dimensions to 0x0 to avoid sizing issues. Fixes #5637 - Dialog: Dimensions of reused overlay may cause scrollbars.

Changeset: a0f16a00b9398f123dbb5e027b21b04af13fcc1b

Changed July 18, 2011 01:54PM UTC by scottgonzalez comment:4

#7562 is a duplicate of this ticket.