diff --git a/src/UI/CSConsole/ConsoleController.cs b/src/UI/CSConsole/ConsoleController.cs index f1710dd..738b736 100644 --- a/src/UI/CSConsole/ConsoleController.cs +++ b/src/UI/CSConsole/ConsoleController.cs @@ -80,6 +80,7 @@ namespace UnityExplorer.UI.CSConsole Panel.OnAutoIndentToggled += OnToggleAutoIndent; Panel.OnCtrlRToggled += OnToggleCtrlRShortcut; Panel.OnSuggestionsToggled += OnToggleSuggestions; + Panel.OnPanelResized += OnInputScrolled; // Run startup script try diff --git a/src/UI/Panels/CSConsolePanel.cs b/src/UI/Panels/CSConsolePanel.cs index 0d21aaa..bf39579 100644 --- a/src/UI/Panels/CSConsolePanel.cs +++ b/src/UI/Panels/CSConsolePanel.cs @@ -35,6 +35,7 @@ namespace UnityExplorer.UI.Panels public Action OnCtrlRToggled; public Action OnSuggestionsToggled; public Action OnAutoIndentToggled; + public Action OnPanelResized; private void InvokeOnValueChanged(string value) { @@ -62,6 +63,11 @@ namespace UnityExplorer.UI.Panels // UI Construction + public override void OnFinishResize(RectTransform panel) + { + OnPanelResized?.Invoke(); + } + protected internal override void DoSetDefaultPosAndAnchors() { Rect.localPosition = Vector2.zero;