Skip to content

Commit

Permalink
Fixed #2597, data labels remained visible even though container was h…
Browse files Browse the repository at this point in the history
…idden.
  • Loading branch information
TorsteinHonsi committed Jul 27, 2016
1 parent 5467267 commit 981fd78
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions js/highcharts.src.js
Expand Up @@ -2,7 +2,7 @@
// @compilation_level SIMPLE_OPTIMIZATIONS

/**
* @license Highcharts JS v4.2.5-modified (2016-07-26)
* @license Highcharts JS v4.2.5-modified (2016-07-27)
*
* (c) 2009-2016 Torstein Honsi
*
Expand Down Expand Up @@ -17993,8 +17993,8 @@
dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300
if (!hasRendered) {
addEvent(series, 'afterAnimate', function () {
if (series.visible) { // #3023, #3024
dataLabelsGroup.show();
if (series.visible) { // #2597, #3023, #3024
dataLabelsGroup.show(true);
}
dataLabelsGroup[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: 200 });
});
Expand Down
6 changes: 3 additions & 3 deletions js/highmaps.src.js
@@ -1,5 +1,5 @@
/**
* @license Highmaps JS v4.2.5-modified (2016-07-26)
* @license Highmaps JS v4.2.5-modified (2016-07-27)
*
* (c) 2011-2016 Torstein Honsi
*
Expand Down Expand Up @@ -16143,8 +16143,8 @@
dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300
if (!hasRendered) {
addEvent(series, 'afterAnimate', function () {
if (series.visible) { // #3023, #3024
dataLabelsGroup.show();
if (series.visible) { // #2597, #3023, #3024
dataLabelsGroup.show(true);
}
dataLabelsGroup[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: 200 });
});
Expand Down
4 changes: 2 additions & 2 deletions js/highstock.src.js
Expand Up @@ -17993,8 +17993,8 @@
dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300
if (!hasRendered) {
addEvent(series, 'afterAnimate', function () {
if (series.visible) { // #3023, #3024
dataLabelsGroup.show();
if (series.visible) { // #2597, #3023, #3024
dataLabelsGroup.show(true);
}
dataLabelsGroup[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: 200 });
});
Expand Down
4 changes: 2 additions & 2 deletions js/parts/DataLabels.js
Expand Up @@ -35,8 +35,8 @@ Series.prototype.drawDataLabels = function () {
dataLabelsGroup.attr({ opacity: +hasRendered }); // #3300
if (!hasRendered) {
addEvent(series, 'afterAnimate', function () {
if (series.visible) { // #3023, #3024
dataLabelsGroup.show();
if (series.visible) { // #2597, #3023, #3024
dataLabelsGroup.show(true);
}
dataLabelsGroup[seriesOptions.animation ? 'animate' : 'attr']({ opacity: 1 }, { duration: 200 });
});
Expand Down

0 comments on commit 981fd78

Please sign in to comment.