Module: nagvis Branch: master Commit: ddd0d692e8ee494a8168e9cb533a1adf53aef8da URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=ddd0d692e8ee494a8168e9cb533a1adf53aef8da
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; ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
