Skip to content

Commit

Permalink
Use non-breaking space (mapbox#9284)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakastin committed Feb 11, 2020
1 parent 7a4eb62 commit c9f09b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/control/scale_control.js
Expand Up @@ -120,7 +120,7 @@ function setScale(container, maxWidth, maxDistance, unit) {
const distance = getRoundNum(maxDistance);
const ratio = distance / maxDistance;
container.style.width = `${maxWidth * ratio}px`;
container.innerHTML = `${distance} ${unit}`;
container.innerHTML = `${distance} ${unit}`;
}

function getDecimalRoundNum(d) {
Expand Down

0 comments on commit c9f09b0

Please sign in to comment.