From 5304f19396dccd12b000c1366eca06b6edb4b518 Mon Sep 17 00:00:00 2001 From: Aris Feryanto Date: Tue, 28 Jun 2011 17:51:59 +0800 Subject: [PATCH] Fix bug when hovering 'More' under 'Structure' tab --- js/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 436805c200..6c22dfa405 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2033,9 +2033,9 @@ $(document).ready(function() { // Optimize DOM querying var $this_dropdown = $(this); // The top offset must be set for IE even if it didn't change - var cell_right_edge_offset = $this_dropdown.parent().offset().left + $this_dropdown.parent().innerWidth(); + var cell_right_edge_offset = $this_dropdown.parent().position().left + $this_dropdown.parent().innerWidth(); var left_offset = cell_right_edge_offset - $this_dropdown.innerWidth(); - var top_offset = $this_dropdown.parent().offset().top + $this_dropdown.parent().innerHeight(); + var top_offset = $this_dropdown.parent().position().top + $this_dropdown.parent().innerHeight(); $this_dropdown.offset({ top: top_offset, left: left_offset }); });