Author: Lars Michelsen <[email protected]>
Date: Wed Apr 20 13:56:33 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Apr 20 13:56:33 2011 +0200
Fixed redrawing of fallback line rendering e.g. in IE
---
share/frontend/nagvis-js/js/lines.js | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/share/frontend/nagvis-js/js/lines.js
b/share/frontend/nagvis-js/js/lines.js
index 1416558..e6fcb68 100644
--- a/share/frontend/nagvis-js/js/lines.js
+++ b/share/frontend/nagvis-js/js/lines.js
@@ -112,12 +112,20 @@ function drawPolygonBasedObject(objectId, num, xCoord,
yCoord, z, colorFill, col
}
oCanvas = null;
} else {
+ var oLine = document.getElementById(objectId+'-line');
+
+ // When redrawing while e.g. moving remove old parts first
+ if(oLine.hasChildNodes())
+ while(oLine.childNodes.length >= 1)
+ oLine.removeChild(oLine.firstChild);
+
// Fallback to old line style
- var oLine = new
jsGraphics(document.getElementById(objectId+'-line'));
- oLine.setColor(colorFill);
- oLine.fillPolygon(xCoord, yCoord);
- oLine.paint();
+ var oL = new jsGraphics(oLine);
+ oL.setColor(colorFill);
+ oL.fillPolygon(xCoord, yCoord);
+ oL.paint();
+ oL = null;
oLine = null;
}
------------------------------------------------------------------------------
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