Skip to content

Commit

Permalink
Merge pull request #828 from OpenGeoscience/fix-scale-baseline
Browse files Browse the repository at this point in the history
Fix text alignment for the scale.
  • Loading branch information
manthey authored May 25, 2018
2 parents a387ee1 + c9964b0 commit 2a100ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ui/scaleWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ var scaleWidget = function (arg) {
x: width / 2,
y: sw * 2,
'text-anchor': 'middle',
'alignment-baseline': 'hanging'
'dominant-baseline': 'hanging'
});
break;
case 'top':
Expand All @@ -246,7 +246,7 @@ var scaleWidget = function (arg) {
x: width / 2,
y: height - sw * 2,
'text-anchor': 'middle',
'alignment-baseline': 'baseline'
'dominant-baseline': 'alphabetic'
});
break;
case 'left':
Expand All @@ -255,7 +255,7 @@ var scaleWidget = function (arg) {
x: width - sw * 2,
y: height / 2,
'text-anchor': 'end',
'alignment-baseline': 'middle'
'dominant-baseline': 'middle'
});
break;
case 'right':
Expand All @@ -264,7 +264,7 @@ var scaleWidget = function (arg) {
x: sw * 2,
y: height / 2,
'text-anchor': 'start',
'alignment-baseline': 'middle'
'dominant-baseline': 'middle'
});
break;
}
Expand Down

0 comments on commit 2a100ef

Please sign in to comment.