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;