[Nagvis-checkins] SF.net Git: nagvis: Small hover menu position fix when reposition the menu to the
Brought to you by:
larsi-
From: lars <la...@us...> - 2011-01-28 14:39:53
|
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 <lm...@la...> 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; |