Skip to content

Commit

Permalink
Core: Access offsetHeight on div for support tests to avoid a layout …
Browse files Browse the repository at this point in the history
…bug in IE 9. Fixes #8026 - minHeight support test affects page layout in IE 9.

(cherry picked from commit 956c2cd)
  • Loading branch information
scottgonzalez committed Jan 20, 2012
1 parent e2a2112 commit 9e4455f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/jquery.ui.core.js
Expand Up @@ -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

This comment has been minimized.

Copy link
@jsgoupil

jsgoupil Feb 27, 2012

typo

This comment has been minimized.

Copy link
@scottgonzalez

scottgonzalez Feb 27, 2012

Author Member

Thanks, fixed in 70de33a.

// after it is removed from the DOM (#8026)
div.offsetHeight;

$.extend( div.style, {
minHeight: "100px",
height: "auto",
Expand Down

0 comments on commit 9e4455f

Please sign in to comment.