Author:   Lars Michelsen <[email protected]>
Date:     Sun Sep 25 11:31:13 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Sep 25 11:31:13 2011 +0200

Bugfix: Fixed X coords when adding new objects with opened sidebar menu

---

 ChangeLog                           |    1 +
 share/frontend/nagvis-js/js/edit.js |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5b7147c..1df15ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@ Frontend
   * Bugfix: std_speedometer.php fixed min/max handling (Thanks to foxkilo)
   * Bugfix: Fixed broken URL handling in e.g. rotation pools
   * Bugfix: Fixed styling of maps with config errors in sidebar
+  * Bugfix: Fixed X coords when adding new objects with opened sidebar menu
   * Readded the "edit" action to the maps module. In this mode all object are
     automatically unlocked and changes to the lock state are not persisted
   * Also disabling the object left click actions in unlocked mode
diff --git a/share/frontend/nagvis-js/js/edit.js 
b/share/frontend/nagvis-js/js/edit.js
index 6658acb..d9f2041 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -418,7 +418,7 @@ function addClick(e) {
         return;
 
     var pos = getEventMousePos(e);
-    addX.push(pos[0]);
+    addX.push(pos[0] - getSidebarWidth());
     addY.push(pos[1]);
     addNumLeft -= 1;
     pos = null;


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to