Skip to content
Permalink
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.
  • Loading branch information
scottgonzalez committed Jan 20, 2012
1 parent 15e73e3 commit 956c2cd2a5a44d40a9b2fb0a8c05f765fa302c92
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.core.js
@@ -223,6 +223,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",

0 comments on commit 956c2cd

Please sign in to comment.
You can’t perform that action at this time.