Skip to content

Commit

Permalink
Fix position of dropdown tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 15, 2017
1 parent d14e4db commit 54a974c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/main.inc.php
Expand Up @@ -1935,11 +1935,11 @@ function llxFooter($comment='',$zone='private')
var scrollBottom = $(window).scrollTop() + $(window).height();
//console.log(scrollBottom);
diffoutsidebottom = (posbottom - scrollBottom);
console.log("diffoutsidebottom (positive = outside) = "+diffoutsidebottom);
console.log("heigthofcontent="+heigthofcontent+", diffoutsidebottom (posbottom="+posbottom+" - scrollBottom="+scrollBottom+") = "+diffoutsidebottom);
if (diffoutsidebottom > 0)
{
pix = "-"+diffoutsidebottom+"px";
console.log(pix);
pix = "-"+(diffoutsidebottom+8)+"px";
console.log("We reposition top by "+pix);
$(this).parent().parent().find(\'dd\').css("top", pix);
}
// $(".dropdown dd ul").slideToggle(\'fast\');
Expand Down

0 comments on commit 54a974c

Please sign in to comment.