Microsoft KB Archive/309649

= Internet Explorer Incorrectly Calculates the Window Size of an HTML Page =

Q309649

-

The information in this article applies to:


 * Microsoft Internet Explorer version 6 for Windows 2000
 * Microsoft Internet Explorer version 6 for Windows 98
 * Microsoft Internet Explorer version 6 for Windows 98 Second Edition
 * Microsoft Internet Explorer version 6 for Windows NT 4.0
 * Microsoft Internet Explorer version 6 for Windows XP

-

SYMPTOMS
When you create Web pages, the screen-size calculation that is used to determine child window locations (and other items in a parent window) may be incorrectly calculated. This may cause child windows (and other items in a parent window) in a Hypertext Markup Language (HTML) page to appear off center or display incorrectly inside of the parent window of an HTML page.

CAUSE
This problem can occur if Internet Explorer is incorrectly calculating screenLeft and screenTop positions of HTML pages.

RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem described in this article and should be applied only to systems experiencing this specific problem. This fix may receive additional testing at a later time, to further ensure product quality. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Internet Explorer 6 service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, please go to the following address on the World Wide Web:

http://support.microsoft.com/directory/overview.asp

NOTE: In special cases, charges that are normally incurred for support calls may be canceled, if a Microsoft Support Professional determines that a specific update will resolve your problem. Normal support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

  Date         Time   Version        Size       File name 10-Oct-2001 15:52  6.0.2710.1000  2,752,000  Mshtml.dll

WORKAROUND
To work around this problem, manually access the parent to retrieve the clientLeft and clientTop of the document.body which will give the border of the body.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words:

Keywords : kbenv kbtool kbui

Issue type : kbbug

Technology : kbOSWin2000 kbOSWin98 kbIEsearch kbOSWin98SE kbOSWinSearch kbIE600Search kbZNotKeyword2 kbIENT400Search kbIE2000Search kbIE98Search kbIE600Win2000 kbIE600Win98 kbIE600WinNT400 kbIE98SESearch kbIE600Win98SE kbIE600WinXPBeta kbIEWinXPSearch

-

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

© 2002 Microsoft Corporation. All rights reserved.