summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-04-04 14:38:31 +0200
committerNicolas Lempereur <nle@odoo.com>2015-04-07 13:37:52 +0200
commit11cd2f38d3181dbc486fefdf85e6cee5488822ea (patch)
treed3b0d4acfc8fc509a1ec11faa5737e202577ef33
parent365eb138b445aaf7086502d16255f04d104d1adf (diff)
[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.
-rw-r--r--addons/web_kanban_gauge/static/lib/justgage/justgage.js2
1 files changed, 1 insertions, 1 deletions
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;
}
}