Minor fix to positioning code in pop-up info panel javascript

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5536 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-04-24 13:12:22 +00:00
parent 5121e99d54
commit b92ebe857c

View File

@@ -246,14 +246,14 @@ function getContextPath()
el.style.left = (pos[0] + 20 - ((pos[0] + elWidth) - docWidth)) + "px";
}
//log(" Element Y:" + pos[1] + " doc height:" + YAHOO.util.Dom.getDocumentHeight());
if (pos[1] - 12 + elHeight < YAHOO.util.Dom.getDocumentHeight())
if (pos[1] + 12 + elHeight < YAHOO.util.Dom.getDocumentHeight())
{
el.style.top = (pos[1] + 12) + "px";
}
else
{
//log(" Shifting Y coord up - overflow");
el.style.top = (pos[1] - elHeight - 4) + "px";
el.style.top = (pos[1] - elHeight + 4) + "px";
}
}
};