From 84629a9b876f6969777b43f3229b62b43bb624d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 8 Nov 2012 11:52:27 -0500 Subject: [PATCH] Fix #12869. Zoom the body after support tests; avoids layout changes in IE8/9/10 in IE7 mode. Close gh-1025. --- src/support.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support.js b/src/support.js index 1001f407a..2657a182f 100644 --- a/src/support.js +++ b/src/support.js @@ -254,7 +254,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; } // Null elements to avoid leaks in IE -- 2.39.5