Skip to content

Commit

Permalink
Fixed regressions in master
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Apr 7, 2014
1 parent a15434c commit f3366a6
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 356 deletions.
2 changes: 1 addition & 1 deletion js/highcharts.src.js
Expand Up @@ -6980,7 +6980,7 @@ Axis.prototype = {
tickPositions = [];

// For single points, add a tick regardless of the relative position (#2662)
if (min === max) {
if (min === max && isNumber(min)) {
return [min];
}

Expand Down
2 changes: 1 addition & 1 deletion js/highmaps.src.js
Expand Up @@ -6719,7 +6719,7 @@ Axis.prototype = {
tickPositions = [];

// For single points, add a tick regardless of the relative position (#2662)
if (min === max) {
if (min === max && isNumber(min)) {
return [min];
}

Expand Down
10 changes: 7 additions & 3 deletions js/highstock.src.js
Expand Up @@ -6980,7 +6980,7 @@ Axis.prototype = {
tickPositions = [];

// For single points, add a tick regardless of the relative position (#2662)
if (min === max) {
if (min === max && isNumber(min)) {
return [min];
}

Expand Down Expand Up @@ -21560,7 +21560,7 @@ Axis.prototype.getPlotBandPath = function (from, to) {
if (path && toPath) {
// Go over each subpath
for (i = 0; i < path.length; i += 6) {
result.push('M', path[i + 1], path[i + 2], 'L', path[i + 4], path[i + 5], 'L', toPath[i + 4], toPath[i + 5], 'L', toPath[i + 1], toPath[i + 2]);
result.push('M', path[i + 1], path[i + 2], 'L', path[i + 4], path[i + 5], toPath[i + 4], toPath[i + 5], toPath[i + 1], toPath[i + 2]);
}
} else { // outside the axis area
result = null;
Expand Down Expand Up @@ -21855,7 +21855,11 @@ Point.prototype.tooltipFormatter = function (pointFormat) {
* to using multiple panes, and a future pane logic should incorporate this feature.
*/
wrap(Series.prototype, 'render', function (proceed) {
this.clipBox = merge(this.chart.clipBox, { height: this.yAxis.len });
if (this.isCartesian) {
this.clipBox = merge(this.chart.clipBox);
this.clipBox.width = this.xAxis.len;
this.clipBox.height = this.yAxis.len;
}
proceed.call(this);
});

Expand Down
2 changes: 1 addition & 1 deletion js/parts/Axis.js
Expand Up @@ -617,7 +617,7 @@ Axis.prototype = {
tickPositions = [];

// For single points, add a tick regardless of the relative position (#2662)
if (min === max) {
if (min === max && isNumber(min)) {
return [min];
}

Expand Down
8 changes: 6 additions & 2 deletions js/parts/StockChart.js
Expand Up @@ -236,7 +236,7 @@ Axis.prototype.getPlotBandPath = function (from, to) {
if (path && toPath) {
// Go over each subpath
for (i = 0; i < path.length; i += 6) {
result.push('M', path[i + 1], path[i + 2], 'L', path[i + 4], path[i + 5], 'L', toPath[i + 4], toPath[i + 5], 'L', toPath[i + 1], toPath[i + 2]);
result.push('M', path[i + 1], path[i + 2], 'L', path[i + 4], path[i + 5], toPath[i + 4], toPath[i + 5], toPath[i + 1], toPath[i + 2]);
}
} else { // outside the axis area
result = null;
Expand Down Expand Up @@ -531,6 +531,10 @@ Point.prototype.tooltipFormatter = function (pointFormat) {
* to using multiple panes, and a future pane logic should incorporate this feature.
*/
wrap(Series.prototype, 'render', function (proceed) {
this.clipBox = merge(this.chart.clipBox, { height: this.yAxis.len });
if (this.isCartesian) {
this.clipBox = merge(this.chart.clipBox);
this.clipBox.width = this.xAxis.len;
this.clipBox.height = this.yAxis.len;
}
proceed.call(this);
});

0 comments on commit f3366a6

Please sign in to comment.