Permalink
Browse files

Fixed unresponsive browser in IE8 Standards when exporting pie charts…

… with data labels. Closes #968.
  • Loading branch information...
1 parent 7921ad7 commit 1e33801a223edfdc3828884fd0d52967a6448217 @TorsteinHonsi TorsteinHonsi committed May 18, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 js/highcharts.src.js
  2. +1 −1 js/highstock.src.js
  3. +1 −1 js/parts/PieSeries.js
View
@@ -14375,7 +14375,7 @@ var PieSeries = {
};
// assume equal label heights
- labelHeight = halves[0][0] && halves[0][0].dataLabel && halves[0][0].dataLabel.getBBox().height;
+ labelHeight = halves[0][0] && halves[0][0].dataLabel && (halves[0][0].dataLabel.getBBox().height || 21); // 21 is for #968
/* Loop over the points in each half, starting from the top and bottom
* of the pie to detect overlapping labels.
View
@@ -14375,7 +14375,7 @@ var PieSeries = {
};
// assume equal label heights
- labelHeight = halves[0][0] && halves[0][0].dataLabel && halves[0][0].dataLabel.getBBox().height;
+ labelHeight = halves[0][0] && halves[0][0].dataLabel && (halves[0][0].dataLabel.getBBox().height || 21); // 21 is for #968
/* Loop over the points in each half, starting from the top and bottom
* of the pie to detect overlapping labels.
View
@@ -479,7 +479,7 @@ var PieSeries = {
};
// assume equal label heights
- labelHeight = halves[0][0] && halves[0][0].dataLabel && halves[0][0].dataLabel.getBBox().height;
+ labelHeight = halves[0][0] && halves[0][0].dataLabel && (halves[0][0].dataLabel.getBBox().height || 21); // 21 is for #968
/* Loop over the points in each half, starting from the top and bottom
* of the pie to detect overlapping labels.

0 comments on commit 1e33801

Please sign in to comment.