Module: nagvis Branch: master Commit: b54fa661ee5723faf180e4e7f1e69233681d9ebc URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=b54fa661ee5723faf180e4e7f1e69233681d9ebc
Author: LaMi <[email protected]> Date: Tue Jan 5 10:02:43 2010 +0100 Fixed line rendering in IE --- share/frontend/nagvis-js/js/lines.js | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/share/frontend/nagvis-js/js/lines.js b/share/frontend/nagvis-js/js/lines.js index 66d573f..2c002a7 100644 --- a/share/frontend/nagvis-js/js/lines.js +++ b/share/frontend/nagvis-js/js/lines.js @@ -67,15 +67,16 @@ function newY(a, b, x, y) { // Draws polygon based object. By default it draws lines (arrows and also plain lines) function drawPolygonBasedObject(objectId, xCoord, yCoord, z, w, colorFill, colorBorder, bLinkArea) { + var xMin = Math.round(min(xCoord)); + var yMin = Math.round(min(yCoord)); + var xMax = Math.round(max(xCoord)); + var yMax = Math.round(max(yCoord)); + // Detect if the browser is able to render canvas objects // If so: Use canvas rendering which performs much better // than using the jsGraphics library var oCanvas = document.createElement('canvas'); if(oCanvas.getContext) { - var xMin = Math.round(min(xCoord)); - var yMin = Math.round(min(yCoord)); - var xMax = Math.round(max(xCoord)); - var yMax = Math.round(max(yCoord)); var oLineContainer = document.getElementById(objectId+'-line'); ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
