Module: nagvis Branch: master Commit: 7937ef4972b992c68aca8d2439bfa75108695815 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=7937ef4972b992c68aca8d2439bfa75108695815
Author: Lars Michelsen <[email protected]> Date: Tue Nov 2 22:11:34 2010 +0100 #386 fixed relative label positioning in WUI --- share/frontend/wui/js/wui.js | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index df61ac6..1c90c8b 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -388,10 +388,8 @@ function saveObjectAfterMoveAndDrop(oObj) { var objX = parseInt(document.getElementById('box_'+type+'_'+id).style.left.replace('px', '')); var objY = parseInt(document.getElementById('box_'+type+'_'+id).style.top.replace('px', '')); - // Substract height of header menu here - objY += getHeaderHeight(); - - // +3: Is the borderWidth of the object highlighting + // +3: Is the borderWidth of the object highlighting. + // The header menu height is not needed when calculating relative coords x = oObj.x - objX + borderWidth; y = oObj.y - objY + borderWidth; ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
