From a86a883bde05cb84c077f10de553b39ebe770972 Mon Sep 17 00:00:00 2001 From: "Denis Kuzmin (github/3F)" Date: Wed, 22 May 2024 21:43:34 +0300 Subject: [PATCH] Fixed UI panel toggling & scrollbar --- vsSolutionBuildEvent/UI/WForms/EventsFrm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vsSolutionBuildEvent/UI/WForms/EventsFrm.cs b/vsSolutionBuildEvent/UI/WForms/EventsFrm.cs index 27f7d94..fed4d5f 100644 --- a/vsSolutionBuildEvent/UI/WForms/EventsFrm.cs +++ b/vsSolutionBuildEvent/UI/WForms/EventsFrm.cs @@ -369,6 +369,7 @@ protected void renderData() groupBoxCommandEvents.Enabled = false; textEditor._.Select(0, 0); + textEditor._.ScrollToHome(); toolTip.SetToolTip(checkBoxWaitForExit, string.Empty); checkBoxWaitForExit.Cursor = Cursors.Default; @@ -979,8 +980,8 @@ protected void expandActionsList(bool open) try { if(!open) { - splitContainer.SplitterDistance = splitContainer.Panel1MinSize; // yes, may exception, because Width may be unchangeable and equal to 160px see above - Size = metric.formCollapsed; + splitContainer.SplitterDistance = splitContainer.Panel1MinSize; // may be an exception due to immutable Width and 160px (n. above) + Width = metric.formCollapsed.Width; return; } Width = metric.form.Width;