mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user