Skip to content

Commit

Permalink
Fixed issue with wrong axis label break on vertical axis when marginL…
Browse files Browse the repository at this point in the history
…eft is set. Closes #1580.
  • Loading branch information
TorsteinHonsi committed Apr 8, 2013
1 parent db1aadc commit 52be236
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/highcharts.src.js
Expand Up @@ -5653,7 +5653,7 @@ Tick.prototype = {
!labelOptions.step && !labelOptions.staggerLines &&
!labelOptions.rotation &&
chart.plotWidth / tickPositions.length) ||
(!horiz && chart.plotWidth / 2),
(!horiz && (chart.optionsMarginLeft || chart.plotWidth / 2)), // #1580
isFirst = pos === tickPositions[0],
isLast = pos === tickPositions[tickPositions.length - 1],
css,
Expand Down
2 changes: 1 addition & 1 deletion js/highstock.src.js
Expand Up @@ -5653,7 +5653,7 @@ Tick.prototype = {
!labelOptions.step && !labelOptions.staggerLines &&
!labelOptions.rotation &&
chart.plotWidth / tickPositions.length) ||
(!horiz && chart.plotWidth / 2),
(!horiz && (chart.optionsMarginLeft || chart.plotWidth / 2)), // #1580
isFirst = pos === tickPositions[0],
isLast = pos === tickPositions[tickPositions.length - 1],
css,
Expand Down
2 changes: 1 addition & 1 deletion js/parts/Tick.js
Expand Up @@ -32,7 +32,7 @@ Tick.prototype = {
!labelOptions.step && !labelOptions.staggerLines &&
!labelOptions.rotation &&
chart.plotWidth / tickPositions.length) ||
(!horiz && chart.plotWidth / 2),
(!horiz && (chart.optionsMarginLeft || chart.plotWidth / 2)), // #1580
isFirst = pos === tickPositions[0],
isLast = pos === tickPositions[tickPositions.length - 1],
css,
Expand Down

0 comments on commit 52be236

Please sign in to comment.