Opened 14 years ago

Closed 11 years ago

#4758 closed bug (notabug)

Modal dialog in IE8 causes endless event-loop

Reported by: Wixbit Owned by: Wixbit
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


Loading the following page in IE8 and pressing the 'Open Dialog' button will cause an endless resize-event loop.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Default Title</title>
	<!-- JavaScripts -->
	<script type="text/javascript" src=""></script>
	<script type="text/javascript" src=""></script>
	<!-- StyleSheets -->
	<link rel="stylesheet" type="text/css" href="" />

<div id="jqd" title="Test!">
	<textarea name="test"></textarea>

<input type="button" value="Open Dialog" onclick="$('#jqd').dialog({ modal: true, width: 'auto' });" />


After loading the page and pressing the button, add a breakpoint to line 7724 in jquery-ui.js (first line in the resize event handler for dialogs) and you will see this point is hit without end.

Change History (7)

comment:1 Changed 13 years ago by BalusC

The infinite loop will be stopped if you outcomment line 7644: $(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);

This information may help further in fixing the bug.

Cheers, B

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

Milestone: TBD1.8

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

Resolution: worksforme
Status: newclosed

I can't reproduce this.

comment:5 Changed 12 years ago by sbassin

Resolution: worksforme
Status: closedreopened

For what it's worth, I was having the same endless event-loop issue in both jQuery-UI 1.8.1 and 1.8.6 in IE8 and commenting out the above line stopped said loop.

comment:6 Changed 11 years ago by Scott González

Owner: set to Wixbit
Status: reopenedpending

Please provide a reduced test case showing the problem.

comment:7 Changed 11 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.