Skip to content

Commit

Permalink
Fixed #4062 3d zIndex incorrect on chart resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanevanraes committed Apr 7, 2015
1 parent 4337493 commit bc49c62
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion js/highcharts-3d.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,9 @@ function draw3DPoints(proceed) {
// Do not do this if the chart is not 3D
if (this.chart.is3d()) {
var grouping = this.chart.options.plotOptions.column.grouping;
if (grouping !== undefined && !grouping && this.group.zIndex !== undefined) {
if (grouping !== undefined && !grouping && this.group.zIndex !== undefined && !this.zIndexSet) {
this.group.attr({zIndex : (this.group.zIndex * 10)});
this.zIndexSet = true; // #4062 set zindex only onc
}

var options = this.options,
Expand Down
2 changes: 1 addition & 1 deletion js/highcharts.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -13761,7 +13761,7 @@ Series.prototype = {
this.sharedClipKey = sharedClipKey;
}

// Remove the shared clipping rectancgle when all series are shown
// Remove the shared clipping rectangle when all series are shown
if (!animation) {
clipRect.count -= 1;
if (clipRect.count <= 0 && sharedClipKey && chart[sharedClipKey]) {
Expand Down
2 changes: 1 addition & 1 deletion js/highmaps.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -13260,7 +13260,7 @@ Series.prototype = {
this.sharedClipKey = sharedClipKey;
}

// Remove the shared clipping rectancgle when all series are shown
// Remove the shared clipping rectangle when all series are shown
if (!animation) {
clipRect.count -= 1;
if (clipRect.count <= 0 && sharedClipKey && chart[sharedClipKey]) {
Expand Down
2 changes: 1 addition & 1 deletion js/highstock.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -13761,7 +13761,7 @@ Series.prototype = {
this.sharedClipKey = sharedClipKey;
}

// Remove the shared clipping rectancgle when all series are shown
// Remove the shared clipping rectangle when all series are shown
if (!animation) {
clipRect.count -= 1;
if (clipRect.count <= 0 && sharedClipKey && chart[sharedClipKey]) {
Expand Down
2 changes: 1 addition & 1 deletion js/parts-3d/Column.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function draw3DPoints(proceed) {
// Do not do this if the chart is not 3D
if (this.chart.is3d()) {
var grouping = this.chart.options.plotOptions.column.grouping;
if (grouping !== undefined && !grouping && this.group.zIndex !== undefined) {
if (grouping !== undefined && !grouping && this.group.zIndex !== undefined && !this.zIndexSet) {
this.group.attr({zIndex : (this.group.zIndex * 10)});
}

Expand Down

0 comments on commit bc49c62

Please sign in to comment.