aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-08 11:52:27 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-11-25 15:16:16 -0500
commit84629a9b876f6969777b43f3229b62b43bb624d2 (patch)
treeb31613d110eb20f21b6ddf3cfad532e8b1a10e3b /src
parentae215fdcf843862dbddbdfd68117ac2926e35a42 (diff)
downloadjquery-84629a9b876f6969777b43f3229b62b43bb624d2.tar.gz
jquery-84629a9b876f6969777b43f3229b62b43bb624d2.zip
Fix #12869. Zoom the body after support tests; avoids layout changes in IE8/9/10 in IE7 mode. Close gh-1025.
Diffstat (limited to 'src')
-rw-r--r--src/support.js4
1 files changed, 3 insertions, 1 deletions
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