Skip to content

Commit

Permalink
Fixed issue with stacks becoming inverted after update, caused by rec…
Browse files Browse the repository at this point in the history
…ursive redrawing. Closes #1119.
  • Loading branch information
TorsteinHonsi committed Sep 6, 2012
1 parent d6715c2 commit 62ddf5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion js/highcharts.src.js
Expand Up @@ -9784,7 +9784,9 @@ Chart.prototype = {
// Fire 'afterSetExtremes' only if extremes are set
if (axis.isDirtyExtremes) { // #821
axis.isDirtyExtremes = false;
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
setTimeout(function () { // prevent a recursive call to chart.redraw() (#1119)
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
}, 0);
}

if (axis.isDirty || isDirtyBox || hasStackedSeries) {
Expand Down
4 changes: 3 additions & 1 deletion js/highstock.src.js
Expand Up @@ -9784,7 +9784,9 @@ Chart.prototype = {
// Fire 'afterSetExtremes' only if extremes are set
if (axis.isDirtyExtremes) { // #821
axis.isDirtyExtremes = false;
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
setTimeout(function () { // prevent a recursive call to chart.redraw() (#1119)
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
}, 0);
}

if (axis.isDirty || isDirtyBox || hasStackedSeries) {
Expand Down
4 changes: 3 additions & 1 deletion js/parts/Chart.js
Expand Up @@ -226,7 +226,9 @@ Chart.prototype = {
// Fire 'afterSetExtremes' only if extremes are set
if (axis.isDirtyExtremes) { // #821
axis.isDirtyExtremes = false;
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
setTimeout(function () { // prevent a recursive call to chart.redraw() (#1119)
fireEvent(axis, 'afterSetExtremes', axis.getExtremes()); // #747, #751
}, 0);
}

if (axis.isDirty || isDirtyBox || hasStackedSeries) {
Expand Down

0 comments on commit 62ddf5f

Please sign in to comment.