From 11cd2f38d3181dbc486fefdf85e6cee5488822ea Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Sat, 4 Apr 2015 14:38:31 +0200 Subject: [PATCH] [FIX] kanban: number missing in IE9 In IE9 there is a "dy" attribute of tspan svg elements which may be wrongly not set to 0. These elements may then be lower than they should (and thus may eventually not be seen at all if they are outside of the svg view area). This fix adds IE9 in the range of browsers to which the "dy" must be set to 0. This issue don't happen in the last official release (http://www.justgage.com/) thanks to either a fix since RaphaelJS 2.0.2 or an update in justgage. --- addons/web_kanban_gauge/static/lib/justgage/justgage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_kanban_gauge/static/lib/justgage/justgage.js b/addons/web_kanban_gauge/static/lib/justgage/justgage.js index 3e3437eeb5f..d4a934dadae 100644 --- a/addons/web_kanban_gauge/static/lib/justgage/justgage.js +++ b/addons/web_kanban_gauge/static/lib/justgage/justgage.js @@ -859,7 +859,7 @@ function getColor(val, pct, col, noGradient, custSec) { /** Fix Raphael display:none tspan dy attribute bug */ function setDy(elem, fontSize, txtYpos) { - if ((!ie || ie > 9) && elem.node.firstChild.attributes.dy) { + if ((!ie || ie > 8) && elem.node.firstChild.attributes.dy) { elem.node.firstChild.attributes.dy.value = 0; } }