Module: nagvis Branch: master Commit: 3000aa7c277a0a74de89239c99b316bc29360471 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=3000aa7c277a0a74de89239c99b316bc29360471
Author: LaMi <[email protected]> Date: Tue Dec 22 20:09:48 2009 +0100 Fixed relative coords when header menu is enabled --- share/frontend/wui/js/wui.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index c572503..f8c2958 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -305,6 +305,9 @@ function saveObjectAfterMoveAndDrop(oObj) { var objX = document.getElementById('box_'+type+'_'+id).style.left.replace('px', ''); var objY = document.getElementById('box_'+type+'_'+id).style.top.replace('px', ''); + // Substract height of header menu here + objY += getHeaderHeight(); + x = oObj.x - objX; y = oObj.y - objY; ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
