FSN#38828 Dropdown staat nu perfect
svn path=/Website/trunk/; revision=32264
This commit is contained in:
@@ -443,35 +443,11 @@ function showActions(event) // event op de mouseover van resultsettable
|
|||||||
var trTop = $(this).offset().top;
|
var trTop = $(this).offset().top;
|
||||||
var pageBottom = pageHeight + scrollCorr;
|
var pageBottom = pageHeight + scrollCorr;
|
||||||
var dropDownBottom = trTop + dropDownHeight;
|
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)
|
if (dropDownBottom > pageBottom)
|
||||||
{
|
$actiondiv.css('top', pageBottom - dropDownHeight - inlineCorr); // bottom of div == bottom of page
|
||||||
$actiondiv.css('top', pageBottom - dropDownHeight);
|
else
|
||||||
}
|
$actiondiv.css('top', trTop - inlineCorr); // aligned with the hamburger
|
||||||
|
|
||||||
if (hambImg) $actiondiv.css('left', $(hambImg).position().left + $(hambImg).width() + "px");
|
if (hambImg) $actiondiv.css('left', $(hambImg).position().left + $(hambImg).width() + "px");
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user