summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-21 17:41:36 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit81188bb24d20f23ff4b7cff37bb17ee7d1b24bd8 (patch)
treed62a0765185d05d2e5b4c67edf666f4cdc161a19
parenta5977fb9406897fda606694c9497565df82c4f8e (diff)
downloadnevsky-81188bb24d20f23ff4b7cff37bb17ee7d1b24bd8.tar.gz
Fix layout of locale markers.
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 29bf0d9..ca5433d 100644
--- a/play.js
+++ b/play.js
@@ -1517,8 +1517,8 @@ function build_map() {
// Locale Markers
e = ui.locale_markers[ix] = document.createElement("div")
e.className = "locale_markers " + locale.type + " " + region
- x = xc - 196/2
- y = y - 8
+ x = locale_xy[ix][0] - 196/2
+ y = locale_xy[ix][1] + 36
e.style.top = y + "px"
e.style.left = x + "px"
e.style.width = 196 + "px"