Module: nagvis Branch: master Commit: 3149cf155f092c32133dfc86c764566b01f30336 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=3149cf155f092c32133dfc86c764566b01f30336
Author: LaMi <[email protected]> Date: Wed Jan 27 12:50:47 2010 +0100 Fixed problem moving objects with relative coords like labels --- share/frontend/wui/js/wui.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index 2bd267e..d60a647 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -421,8 +421,8 @@ function saveObjectAfterMoveAndDrop(oObj) { // Handle relative and absolute aligned labels if(align === 'rel') { // Calculate relative coordinates - var objX = document.getElementById('box_'+type+'_'+id).style.left.replace('px', ''); - var objY = document.getElementById('box_'+type+'_'+id).style.top.replace('px', ''); + 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(); ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
