diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-01-19 21:37:21 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-01-19 21:37:39 -0500 |
commit | 956c2cd2a5a44d40a9b2fb0a8c05f765fa302c92 (patch) | |
tree | 098d0de0ef51442f93127074b4b05c22bbc0d71f /ui | |
parent | 15e73e38b2976ae6bca8d000ed3b808841cd4492 (diff) | |
download | jquery-ui-956c2cd2a5a44d40a9b2fb0a8c05f765fa302c92.tar.gz jquery-ui-956c2cd2a5a44d40a9b2fb0a8c05f765fa302c92.zip |
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.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.core.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index f0cf89ba7..d777d6d49 100644 --- a/ui/jquery.ui.core.js +++ b/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", |