mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #12869. Zoom the body after support tests; avoids layout changes in IE8/9/10 in IE7 mode. Close gh-1025.
This commit is contained in:
parent
ae215fdcf8
commit
84629a9b87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user