Skip to content

Commit

Permalink
Rename the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
el committed Oct 5, 2019
1 parent 1f40f09 commit 7da5f6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,14 +1205,14 @@ var Scale = Element.extend({
var scaleLabelFont = helpers.options._parseFont(scaleLabel);
var scaleLabelPadding = helpers.options.toPadding(scaleLabel.padding);
var halfLineHeight = scaleLabelFont.lineHeight / 2;
var scaleAlign = scaleLabel.align;
var scaleLabelAlign = scaleLabel.align;
var position = options.position;
var rotation = 0;
var scaleLabelX, scaleLabelY, textAlign;
var isReverse = me.options.ticks.reverse;

if (me.isHorizontal()) {
switch (scaleAlign) {
switch (scaleLabelAlign) {
case 'start':
scaleLabelX = me.left;
textAlign = isReverse ? 'right' : 'left';
Expand All @@ -1234,7 +1234,7 @@ var Scale = Element.extend({
scaleLabelX = isLeft
? me.left + halfLineHeight + scaleLabelPadding.top
: me.right - halfLineHeight - scaleLabelPadding.top;
switch (scaleAlign) {
switch (scaleLabelAlign) {
case 'start':
scaleLabelY = me.top + (startsAtBottom ? me.height : 0);
textAlign = (startsAtBottom ^ !isLeft) ? 'left' : 'right';
Expand Down

0 comments on commit 7da5f6b

Please sign in to comment.