From 5e078473569fd3ac3b1d92faaca5a30e005de161 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Fri, 22 Apr 2022 21:02:08 +1000 Subject: [PATCH] Make current hooks view smaller in height --- src/Hooks/HookList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hooks/HookList.cs b/src/Hooks/HookList.cs index bbb2500..746ee62 100644 --- a/src/Hooks/HookList.cs +++ b/src/Hooks/HookList.cs @@ -79,7 +79,7 @@ namespace UnityExplorer.Hooks internal void ConstructUI(GameObject leftGroup) { UIRoot = UIFactory.CreateUIObject("CurrentHooksPanel", leftGroup); - UIFactory.SetLayoutElement(UIRoot, flexibleHeight: 9999, flexibleWidth: 9999); + UIFactory.SetLayoutElement(UIRoot, preferredHeight: 150, flexibleHeight: 0, flexibleWidth: 9999); UIFactory.SetLayoutGroup(UIRoot, true, true, true, true); Text hooksLabel = UIFactory.CreateLabel(UIRoot, "HooksLabel", "Current Hooks", TextAnchor.MiddleCenter);