Skip to content

Commit a86a883

Browse files
committed
Fixed UI panel toggling & scrollbar
1 parent 6ec886e commit a86a883

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

vsSolutionBuildEvent/UI/WForms/EventsFrm.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ protected void renderData()
369369
groupBoxCommandEvents.Enabled = false;
370370

371371
textEditor._.Select(0, 0);
372+
textEditor._.ScrollToHome();
372373
toolTip.SetToolTip(checkBoxWaitForExit, string.Empty);
373374
checkBoxWaitForExit.Cursor = Cursors.Default;
374375

@@ -979,8 +980,8 @@ protected void expandActionsList(bool open)
979980
try
980981
{
981982
if(!open) {
982-
splitContainer.SplitterDistance = splitContainer.Panel1MinSize; // yes, may exception, because Width may be unchangeable and equal to 160px see above
983-
Size = metric.formCollapsed;
983+
splitContainer.SplitterDistance = splitContainer.Panel1MinSize; // may be an exception due to immutable Width and 160px (n. above)
984+
Width = metric.formCollapsed.Width;
984985
return;
985986
}
986987
Width = metric.form.Width;

0 commit comments

Comments
 (0)