From 1f16b2472cc145b3e93738fcfd92903051ebe6e8 Mon Sep 17 00:00:00 2001 From: Cay Date: Thu, 12 Mar 2026 15:01:50 +0000 Subject: [PATCH] ztuo --- public/js/map-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/map-ui.js b/public/js/map-ui.js index 93888a5..d40ea89 100644 --- a/public/js/map-ui.js +++ b/public/js/map-ui.js @@ -13,8 +13,8 @@ document.querySelectorAll(".building").forEach((b) => { // Position des Gebäudes const rect = b.getBoundingClientRect(); - popup.style.left = rect.left + rect.width / 2 + "px"; - popup.style.top = rect.top + rect.height / 2 + "px"; + popup.style.left = "50%"; + popup.style.top = "50%"; //popup.style.display = "block";