From 76b7e24614ee9cec6a929cecefb8bc7472841811 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Tue, 27 Jun 2023 13:22:39 +0900 Subject: [PATCH] also reset AN panel loc/size --- public/scripts/power-user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/scripts/power-user.js b/public/scripts/power-user.js index 00b65f0a5..9fa74b09d 100644 --- a/public/scripts/power-user.js +++ b/public/scripts/power-user.js @@ -942,6 +942,14 @@ function resetMovablePanels() { document.getElementById("WorldInfo").style.width = ''; document.getElementById("WorldInfo").style.margin = ''; + document.getElementById("floatingPrompt").style.top = ''; + document.getElementById("floatingPrompt").style.left = ''; + document.getElementById("floatingPrompt").style.right = ''; + document.getElementById("floatingPrompt").style.bottom = ''; + document.getElementById("floatingPrompt").style.height = ''; + document.getElementById("floatingPrompt").style.width = ''; + document.getElementById("floatingPrompt").style.margin = ''; + $('*[data-dragged="true"]').removeAttr('data-dragged'); power_user.movingUIState = {} saveSettingsDebounced();