Author:   Lars Michelsen <[email protected]>
Date:     Sun Apr 17 12:02:14 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Apr 17 12:02:14 2011 +0200

Fixed parsing of relative coords for shapes

---

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

diff --git a/share/frontend/nagvis-js/js/NagVisShape.js 
b/share/frontend/nagvis-js/js/NagVisShape.js
index 3c697a7..c77382c 100644
--- a/share/frontend/nagvis-js/js/NagVisShape.js
+++ b/share/frontend/nagvis-js/js/NagVisShape.js
@@ -75,8 +75,8 @@ var NagVisShape = NagVisStatelessObject.extend({
                oIconDiv.setAttribute('id', this.conf.object_id+'-icondiv');
                oIconDiv.setAttribute('class', 'icon');
                oIconDiv.setAttribute('className', 'icon');
-               oIconDiv.style.top = this.conf.y+'px';
-               oIconDiv.style.left = this.conf.x+'px';
+               oIconDiv.style.top    = this.parseCoord(this.conf.y, 'y') + 
'px';
+               oIconDiv.style.left   = this.parseCoord(this.conf.x, 'x') + 
'px';
                oIconDiv.style.zIndex = this.conf.z;
                
                var oIcon = document.createElement('img');


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to