Microsoft KB Archive/270123

= FIX: Internet Explorer Stops Responding When You Resize the Browser Window =

Article ID: 270123

Article Last Modified on 11/6/2003

-

APPLIES TO


 * Microsoft Internet Explorer 5.01

-



This article was previously published under Q270123



SYMPTOMS
When you resize a Web page that contains a nonscrolling frame and specific style sheet properties, Internet Explorer may stop responding (hang) or stop completely (crash).



CAUSE
This problem occurs under the following frame conditions:
 * When you set the width of one of the frames to zero.
 * When you specify the SCROLLING=NO attribute on the frame.
 * When the contents of the frame contain style sheet properties that specify the widths of certain elements.



RESOLUTION
To resolve this problem, you can use one of the following methods:
 * Remove the SCROLLING=NO attribute from the frame.
 * Modify the style sheet properties as described in the &quot;More Information&quot; section.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Internet Explorer 5.5.



MORE INFORMATION
This problem can occur if all of the conditions in the &quot;Cause&quot; section are met, with the following specific style sheet conditions:
 * The page contains nested elements that have specified widths; for example SPAN elements with specified widths that are enclosed within a DIV element with a specified width.
 * The total width of the enclosed elements is less than or equal to the enclosing element.
 * The width of the enclosed elements, plus the width of the left and right borders of the enclosing element (which is zero by default), plus one for each enclosed element is greater than the width of the enclosing element.

The problem occurs because one pixel must be added to the width of the outer element for every enclosed element.

Steps to Reproduce Behavior
  Create a file named Frameset.htm, and paste the following HTML code:        </HTML> </li> <li> In the same folder, create a file named Frame.htm and paste the following code: <HTML>  </TITLE> <STYLE> {   HEIGHT: 100px; WIDTH: 150px; background: blue; } {   WIDTH: 50px; border: 1px solid pink; background: green; } {   WIDTH: 50px; border: 1px solid pink; background: yellow; } {   WIDTH: 50px; border: 1px solid pink; background: purple; } </STYLE> </HEAD> <BODY> <DIV ID=&quot;div1&quot;> <SPAN ID=&quot;spn1&quot;></SPAN> <SPAN ID=&quot;spn2&quot;></SPAN> <SPAN ID=&quot;spn3&quot;></SPAN> </DIV> </BODY> </HTML> NOTE: Although the above content appears in the visible, right frame for reference only, the problem is caused by the invisible, left frame. </li> <li>In Internet Explorer 5.01, open Frameset.htm.</li> <li>Resize the window, and Internet Explorer either hangs with high CPU usage or crashes.</li></ol>
 * 1) div1
 * 1) spn1
 * 1) spn2
 * 1) spn3

To correct this problem, make one of the following changes:
 * In the Frame.htm file, add three to the width of the outer DIV tags (one pixel for each of the contained SPAN elements). In other words, the Width property of the #div1 style should be 153 pixels, instead of 150. -or-


 * In the Frameset.htm file, remove the SCROLLING=NO attribute from the left frame.

Additional query words: crash hang

Keywords: kbbug kbfix kbie550fix KB270123

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.