FSN#38828 Dropdown staat nu perfect

svn path=/Website/trunk/; revision=32264
This commit is contained in:
2017-01-09 10:05:22 +00:00
parent 14e3c17518
commit 96a2b58239

View File

@@ -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