[FIX]web_kanban_gauge, lib justgage.js: comptability problem with Firefox (25.0 tested) with elem.node.firstChild.attributes.dy.value = 0;

bzr revid: dle@openerp.com-20131107140202-inlbhj7zvfg7bqix
This commit is contained in:
Denis Ledoux 2013-11-07 15:02:02 +01:00
parent db75733848
commit 8dd53f6652
1 changed files with 1 additions and 1 deletions

View File

@ -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) {
if ((!ie || ie > 9) && elem.node.firstChild.attributes.dy) {
elem.node.firstChild.attributes.dy.value = 0;
}
}