Ticket #5637 (closed bug: fixed)

Opened 3 years ago

Last modified 22 months ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 2 years ago by k_borchers

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

Thanks

comment:2 Changed 2 years ago by scott.gonzalez

  • Status changed from new to open
  • Summary changed from Dimensions of reused dialog overlay to Dialog: Dimensions of reused overlay may cause scrollbars

comment:3 Changed 2 years ago by Scott González

  • Status changed from open to closed
  • Resolution set to fixed

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

Changeset: a0f16a00b9398f123dbb5e027b21b04af13fcc1b

comment:4 Changed 22 months ago by scott.gonzalez

#7562 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.