Skip to content

Commit

Permalink
Fixed #3575, huge columns not rendering on Chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Nov 26, 2014
1 parent 2f60db5 commit 79be2f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/highcharts.src.js
Expand Up @@ -15534,7 +15534,7 @@ var ColumnSeries = extendClass(Series, {
barW = right - barX;

fromTop = mathAbs(barY) < 0.5;
bottom = mathRound(barY + barH) + yCrisp;
bottom = mathMin(mathRound(barY + barH) + yCrisp, 9e4); // #3575
barY = mathRound(barY) + yCrisp;
barH = bottom - barY;

Expand Down
2 changes: 1 addition & 1 deletion js/highmaps.src.js
Expand Up @@ -14385,7 +14385,7 @@ var ColumnSeries = extendClass(Series, {
barW = right - barX;

fromTop = mathAbs(barY) < 0.5;
bottom = mathRound(barY + barH) + yCrisp;
bottom = mathMin(mathRound(barY + barH) + yCrisp, 9e4); // #3575
barY = mathRound(barY) + yCrisp;
barH = bottom - barY;

Expand Down
2 changes: 1 addition & 1 deletion js/highstock.src.js
Expand Up @@ -15534,7 +15534,7 @@ var ColumnSeries = extendClass(Series, {
barW = right - barX;

fromTop = mathAbs(barY) < 0.5;
bottom = mathRound(barY + barH) + yCrisp;
bottom = mathMin(mathRound(barY + barH) + yCrisp, 9e4); // #3575
barY = mathRound(barY) + yCrisp;
barH = bottom - barY;

Expand Down
2 changes: 1 addition & 1 deletion js/parts/ColumnSeries.js
Expand Up @@ -213,7 +213,7 @@ var ColumnSeries = extendClass(Series, {
barW = right - barX;

fromTop = mathAbs(barY) < 0.5;
bottom = mathRound(barY + barH) + yCrisp;
bottom = mathMin(mathRound(barY + barH) + yCrisp, 9e4); // #3575
barY = mathRound(barY) + yCrisp;
barH = bottom - barY;

Expand Down

0 comments on commit 79be2f3

Please sign in to comment.