Module: nagvis Branch: nagvis-1.5 Commit: 9c17ad130f68cbebcb0e69797e5975164cbc38fa URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=9c17ad130f68cbebcb0e69797e5975164cbc38fa
Author: Lars Michelsen <[email protected]> Date: Fri Jan 28 15:39:38 2011 +0100 Small hover menu position fix when reposition the menu to the left of the icon --- share/frontend/nagvis-js/js/frontendHover.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/frontendHover.js b/share/frontend/nagvis-js/js/frontendHover.js index 5098da3..8b9c178 100644 --- a/share/frontend/nagvis-js/js/frontendHover.js +++ b/share/frontend/nagvis-js/js/frontendHover.js @@ -121,9 +121,9 @@ function hoverShow(x, y, id) { if(!hoverPosAndSizeOk) { // First reposition by real size or by min width if(hoverMenu.clientWidth < minWidth) - hoverMenu.style.left = hoverLeft - minWidth - hoverSpacer + 'px'; + hoverMenu.style.left = (x - minWidth - hoverSpacer) + 'px'; else - hoverMenu.style.left = (hoverLeft - hoverMenu.clientWidth - hoverSpacer) + 'px'; + hoverMenu.style.left = (x - hoverMenu.clientWidth - hoverSpacer) + 'px'; if(hoverMenuInScreen(hoverMenu, hoverSpacer)) { hoverPosAndSizeOk = true; ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
