From 52dcdc909d279821e1e00b47b7114ea681d565d4 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 11 Feb 2020 16:47:07 -0500 Subject: [PATCH] Set the world height input correctly when auto-sizing the world --- macrovision.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macrovision.js b/macrovision.js index 03625493..4b786b56 100644 --- a/macrovision.js +++ b/macrovision.js @@ -898,6 +898,8 @@ function updateWorldHeight() { function setWorldHeight(oldHeight, newHeight) { config.height = newHeight; + const unit = document.querySelector("#options-height-unit").value; + document.querySelector("#options-height-value").value = config.height.toNumber(unit); Object.entries(entities).forEach(([key, entity]) => { const element = document.querySelector("#entity-" + key); const newPosition = adjustAbs({ x: element.dataset.x, y: element.dataset.y }, oldHeight, config.height);