Module: nagvis
Branch: master
Commit: d1262c98d05c4e8735c951f173c2a4793f77a327
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=d1262c98d05c4e8735c951f173c2a4793f77a327

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 7c2f372..11b06d0 100644
--- a/share/frontend/nagvis-js/js/frontendHover.js
+++ b/share/frontend/nagvis-js/js/frontendHover.js
@@ -119,9 +119,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

Reply via email to