Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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)
  • Loading branch information...
1 parent e2a2112 commit 9e4455f52d721f2efd4c91037bcd3daf24635599 @scottgonzalez scottgonzalez committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.core.js
5 ui/jquery.ui.core.js
@@ -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


@scottgonzalez Owner

Thanks, fixed in 70de33a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ // after it is removed from the DOM (#8026)
+ div.offsetHeight;
$.extend(, {
minHeight: "100px",
height: "auto",

0 comments on commit 9e4455f

Please sign in to comment.
Something went wrong with that request. Please try again.