diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-09-21 18:36:41 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-09-21 18:36:41 -0700 |
commit | 218493c50be9362d4abed6900a816308fee5d978 (patch) | |
tree | 15c2bfc649c889984019405c602a60b35591c937 /themes/default/js/ui.init.js | |
parent | d92c5a8a845baefc31743330f0a348a6f0c0c4fd (diff) | |
parent | 33690a32bcf132e5ab470ff77ba23c073ac26271 (diff) |
Merge commit 'upstream/master'
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 93dfb275..e645eb71 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -91,12 +91,19 @@ $(document).ready(function() { }, function() { // Reset item height, position, and z-index - var sib_height = $(this).next().height(); + if ($(this).next().height()) { + var sib_height = $(this).next().height(); + } else { + var sib_height = $(this).prev().height(); + } + if ($.browser.msie && $.browser.version >= 8) { + sib_height = sib_height + 1; + } $(this).css("height", sib_height); $(this).css("position", "relative"); $(this).css("top", null); $(this).css("left", null); - $(this).css("z-index", null); + $(this).css("z-index", 1); // Remove the placeholder and hover class from the item $("#gPlaceHolder").remove(); $(this).removeClass("gHoverItem"); |