From 4932f8aea6e7df70653f6d372b73ad9237782ac7 Mon Sep 17 00:00:00 2001 From: Juha Lindstedt Date: Tue, 11 Feb 2020 22:00:20 +0200 Subject: [PATCH] Use non-breaking space (#9284) --- src/ui/control/scale_control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/control/scale_control.js b/src/ui/control/scale_control.js index 817a314bc23..a8c5ce25858 100644 --- a/src/ui/control/scale_control.js +++ b/src/ui/control/scale_control.js @@ -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) {