Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 9e4455f52d721f2efd4c91037bcd3daf24635599 1 parent e2a2112
Scott González authored January 19, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  ui/jquery.ui.core.js
5  ui/jquery.ui.core.js
@@ -225,6 +225,11 @@ $(function() {
225 225
 	var body = document.body,
226 226
 		div = body.appendChild( div = document.createElement( "div" ) );
227 227
 
  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
+
228 233
 	$.extend( div.style, {
229 234
 		minHeight: "100px",
230 235
 		height: "auto",

0 notes on commit 9e4455f

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