Skip to content

Commit 9e4455f

Browse files
committed
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 956c2cd)
1 parent e2a2112 commit 9e4455f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/jquery.ui.core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ $(function() {
225225
var body = document.body,
226226
div = body.appendChild( div = document.createElement( "div" ) );
227227

228+
// access offsetHeight before setting the style to prevent a layout bug
229+
// in IE 9 which causes the elemnt to continue to take up space even
230+
// after it is removed from the DOM (#8026)
231+
div.offsetHeight;
232+
228233
$.extend( div.style, {
229234
minHeight: "100px",
230235
height: "auto",

0 commit comments

Comments
 (0)