From cbe17927fb0a3e317b764ebbec873706ce86d4e6 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Sun, 24 Apr 2022 05:57:22 +1000 Subject: [PATCH] Ensure valid panel size after loading save data --- src/UI/Panels/UEPanel.cs | 2 ++ src/UI/UIManager.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Panels/UEPanel.cs b/src/UI/Panels/UEPanel.cs index 6e61a3b..7737475 100644 --- a/src/UI/Panels/UEPanel.cs +++ b/src/UI/Panels/UEPanel.cs @@ -119,6 +119,8 @@ namespace UnityExplorer.UI.Panels { Rect.SetAnchorsFromString(split[1]); Rect.SetPositionFromString(split[2]); + this.EnsureValidSize(); + this.EnsureValidPosition(); this.SetActive(bool.Parse(split[0])); } catch diff --git a/src/UI/UIManager.cs b/src/UI/UIManager.cs index 458def3..1058e79 100644 --- a/src/UI/UIManager.cs +++ b/src/UI/UIManager.cs @@ -26,7 +26,6 @@ namespace UnityExplorer.UI Options, ConsoleLog, AutoCompleter, - //MouseInspector, UIInspectorResults, HookManager, Clipboard,