Permalink
Browse files

Set zoom on the body after running support tests to avoid layout chan…

…ges in IE8/9/10 running in IE 7 mode. Fixes #12869.
  • Loading branch information...
1 parent 517846a commit b586ced2c878d96cae33d0a875aee26effdf87c6 @scottgonzalez committed Nov 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/support.js
View
@@ -250,7 +250,9 @@ jQuery.support = (function() {
div.firstChild.style.width = "5px";
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;
@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

0 comments on commit b586ced

Please sign in to comment.