mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Access offsetHeight on div for support tests to avoid a layout bug in IE 9. Fixes #8026 - minHeight support test affects page layout in IE 9.
(cherry picked from commit 956c2cd2a5
)
This commit is contained in:
parent
e2a21129cb
commit
9e4455f52d
5
ui/jquery.ui.core.js
vendored
5
ui/jquery.ui.core.js
vendored
@ -225,6 +225,11 @@ $(function() {
|
||||
var body = document.body,
|
||||
div = body.appendChild( div = document.createElement( "div" ) );
|
||||
|
||||
// access offsetHeight before setting the style to prevent a layout bug
|
||||
// in IE 9 which causes the elemnt to continue to take up space even
|
||||
// after it is removed from the DOM (#8026)
|
||||
div.offsetHeight;
|
||||
|
||||
$.extend( div.style, {
|
||||
minHeight: "100px",
|
||||
height: "auto",
|
||||
|
Loading…
Reference in New Issue
Block a user