From 96a2b58239f6e6fcae36edac36511290b01aedf3 Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Mon, 9 Jan 2017 10:05:22 +0000 Subject: [PATCH] FSN#38828 Dropdown staat nu perfect svn path=/Website/trunk/; revision=32264 --- APPL/Localscripts/resultset_table_v2.js | 30 +++---------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/APPL/Localscripts/resultset_table_v2.js b/APPL/Localscripts/resultset_table_v2.js index e9ce89ca6c..5ea464482f 100644 --- a/APPL/Localscripts/resultset_table_v2.js +++ b/APPL/Localscripts/resultset_table_v2.js @@ -443,35 +443,11 @@ function showActions(event) // event op de mouseover van resultsettable var trTop = $(this).offset().top; var pageBottom = pageHeight + scrollCorr; var dropDownBottom = trTop + dropDownHeight; - var trBottom = trTop + trHeight; - var my, at; - - if (trBottom > pageBottom) - { - my = 'bottom'; - at = 'center'; - } - else if (dropDownBottom > pageBottom) - { - my = 'bottom'; - at = 'bottom'; - } - else - { - my = 'top'; - at = 'top'; - } - - $actiondiv.position({ - my: my, - at: at, - of: this - }); if (dropDownBottom > pageBottom) - { - $actiondiv.css('top', pageBottom - dropDownHeight); - } + $actiondiv.css('top', pageBottom - dropDownHeight - inlineCorr); // bottom of div == bottom of page + else + $actiondiv.css('top', trTop - inlineCorr); // aligned with the hamburger if (hambImg) $actiondiv.css('left', $(hambImg).position().left + $(hambImg).width() + "px"); else