Skip to content

Commit

Permalink
Set zoom on the body after running support tests to avoid layout chan…
Browse files Browse the repository at this point in the history
…ges in IE8/9/10 running in IE 7 mode. Fixes #12869.
  • Loading branch information
scottgonzalez committed Nov 15, 2012
1 parent 517846a commit b586ced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/support.js
Expand Up @@ -250,7 +250,9 @@ jQuery.support = (function() {
div.firstChild.style.width = "5px"; div.firstChild.style.width = "5px";
support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );


container.style.zoom = 1; // Prevent IE 6 from affecting layout for positioned elements #11048
// Prevent IE from shrinking the body in IE 7 mode #12869
body.style.zoom = 1;

This comment has been minimized.

Copy link
@dmethvin

dmethvin Nov 16, 2012

I was concerned this might reset a zoom the user selected from a previous visit, but the user's zoom setting (from IE's menu or control-wheel on the mouse) does not seem to affect body.style.zoom.

} }


// Null elements to avoid leaks in IE // Null elements to avoid leaks in IE
Expand Down

0 comments on commit b586ced

Please sign in to comment.