FSN#38071 hamburger dropdown-menu zit nu aan de hamburger button geplakt
svn path=/Website/trunk/; revision=31423
This commit is contained in:
@@ -259,22 +259,38 @@ function showActions(event) // event op de mouseover van resultsettable
|
||||
anyShow = true;
|
||||
}
|
||||
});
|
||||
if (touch)
|
||||
$actiondiv.css('top', $(this).offset().top);
|
||||
else
|
||||
$actiondiv.css('top', $(this).offset().top + $(this).outerHeight() - $actiondiv.outerHeight() - 5 + "px");
|
||||
|
||||
$actiondiv.css('top', $(this).offset().top + $(this).outerHeight() - $actiondiv.outerHeight() - (touch?15:5) + "px");
|
||||
if (!anyShow)
|
||||
{
|
||||
$actiondiv.hide();
|
||||
return;
|
||||
}
|
||||
var hasActionsCol = $actiondiv.attr("hasActionsCol");
|
||||
|
||||
var tdhasact = $(this).find("td")[hasActionsCol];
|
||||
if (tdhasact)
|
||||
var hambImg = $(this).find("div.hamburger").children()[0];
|
||||
|
||||
if (touch)
|
||||
{
|
||||
if (hambImg)
|
||||
{
|
||||
$actiondiv.css('left', $(hambImg).position().left + $(hambImg).width() + "px");
|
||||
}
|
||||
else
|
||||
{
|
||||
// afvangen? div.hamburger niet gevonden of heeft geen children()
|
||||
}
|
||||
}
|
||||
else if (tdhasact)
|
||||
$actiondiv.css('left', $(tdhasact).position().left + "px");
|
||||
else // dan maar rechts uitlijnen?
|
||||
{ // TODO: Forceren dat het niet buiten beeld valt als er een scrollbar is?
|
||||
$actiondiv.css('left', $(this).position().left + $(this).width() - window.ww - 10 + "px");
|
||||
}
|
||||
FcltMgr.resized();
|
||||
}
|
||||
|
||||
//actions[i].multiOnce
|
||||
|
||||
@@ -1229,7 +1229,7 @@ function __rsMakeTableRow(oRs, oRsFlexData, cnt, anyMultiActions, noFlexResult)
|
||||
|
||||
if (device.test(device.isTouch) && hasInlineActions)
|
||||
{
|
||||
// If clause nog verbeteren
|
||||
// TODO: If clause nog verbeteren
|
||||
if (actionbits.substr(1) == noActionBit.substr(1))
|
||||
{
|
||||
appender += "<td></td>";
|
||||
|
||||
Reference in New Issue
Block a user