Skip to content

Commit

Permalink
Fixed issue with text styles not being applied in IE quirks.
Browse files Browse the repository at this point in the history
  • Loading branch information
highslide-software committed Dec 22, 2010
1 parent c26c19f commit f44ccf9
Show file tree
Hide file tree
Showing 2 changed files with 678 additions and 674 deletions.
12 changes: 8 additions & 4 deletions js/highcharts.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1663,9 +1663,14 @@ SVGElement.prototype = {
);

// serialize and set style attribute
elemWrapper.attr({
style: serializeCSS(styles)
});
if (isIE && !hasSVG) { // legacy IE doesn't support setting style attribute
css(elemWrapper.element, styles);
} else {
elemWrapper.attr({
style: serializeCSS(styles)
});
}


// store object
elemWrapper.styles = styles;
Expand Down Expand Up @@ -6999,7 +7004,6 @@ function Chart (options, callback) {
.add()
.align(chartTitleOptions, false, spacingBox);
}

});

}
Expand Down
Loading

0 comments on commit f44ccf9

Please sign in to comment.