Skip to main content

Search and Top Navigation

#4758 closed bug (notabug)

Opened August 07, 2009 12:18PM UTC

Closed September 22, 2011 07:47AM UTC

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:
Description

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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Default Title</title>
	
	<!-- JavaScripts -->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.js"></script>
	
	<!-- StyleSheets -->
	<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/smoothness/jquery-ui.css" />
</head>
<body>

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

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

</body>
</html>

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.

Attachments (0)
Change History (7)

Changed August 27, 2009 07:29PM UTC by BalusC comment:1

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

Changed August 27, 2009 07:33PM UTC by BalusC comment:2

Changed November 13, 2009 07:32PM UTC by scottgonzalez comment:3

milestone: TBD1.8

Changed October 14, 2010 02:01PM UTC by scottgonzalez comment:4

resolution: → worksforme
status: newclosed

I can't reproduce this.

Changed November 05, 2010 09:29PM UTC by sbassin comment:5

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.

Changed September 07, 2011 12:44PM UTC by scottgonzalez comment:6

owner: → Wixbit
status: reopenedpending

Please provide a reduced test case showing the problem.

Changed September 22, 2011 07:47AM UTC by trac-o-bot comment:7

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!