aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-01-22 14:47:21 +0100
committerFelix Nagel <info@felixnagel.com>2012-01-22 14:47:21 +0100
commit21d96f12f802f13c4c159ab9b2e0a6df3771be42 (patch)
treec74f69270a62bc8a99e175bd3a94c7bc18433a48 /ui/jquery.ui.core.js
parent725023e30db10cc0a3ec2b8b9fda0ec80a4ab496 (diff)
parent6800e1a2f97a7d8aaf20d065aa2ce517528e5068 (diff)
downloadjquery-ui-21d96f12f802f13c4c159ab9b2e0a6df3771be42.tar.gz
jquery-ui-21d96f12f802f13c4c159ab9b2e0a6df3771be42.zip
Merge branch 'master' of github.com:jquery/jquery-ui into selectmenu
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r--ui/jquery.ui.core.js5
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",