You are currently offline, waiting for your internet to reconnect

New Internet Explorer windows do not respect reset zoom level when using script

Consider the following scenario. You use Windows Internet Explorer 8 or Windows Internet Explorer 9 to browse to a page that has a zoom level other than 100%. This page contains a button that opens a new window with specific dimensions using script. You have the Reset zoom level for new windows and tabs option set under the Advanced tab of Internet Explorer Internet Options. When you click the button, the new window opens with the same zoom level as the parent window. This can cause some unexpected behavior on the child window where portions of the child window are not visible.

On Internet Explorer versions prior to Internet Explorer 8, the new window opens with a zoom level equal to 100%
In Internet Explorer 8 and above, windows created using the API (as well as showMod[al:eless]Dialog and createPopup) have been designed to not honor the Reset zoom level for new windows and tabs setting and always inherit the zoom factor from their parent page. 
The new window dimensions and the dimensions of the objects it contains can be scaled according to the zoom level that it inherits. The pertinent formulas are:

1. The actual zoom level can be calculated as:

var zoomLevel = window.screen.deviceXDPI / window.screen.logicalXDPI;

2. To counterscale an element, the formula is:

var objectWidth = desiredUnscaledWidth / zoomLevel;var objectWidth = desiredUnscaledWidth / zoomLevel;

More information
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2741211 - Last Review: 08/09/2012 17:14:00 - Revision: 2.0

Windows Internet Explorer 8, Windows Internet Explorer 9

  • KB2741211
dy>>"> amp;did=1&t=">varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" rCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" html>.com/c.gif?DI=4050&did=1&t=">