Skip to content

Commit

Permalink
Fix initial size of Statement Completion Form (#3302)
Browse files Browse the repository at this point in the history
The first time the Statement Completion Form came up during TestMethodEditTutorial, its height would incorrectly be too large.
  • Loading branch information
nickshulman authored Dec 27, 2024
1 parent dbb6425 commit 30b9a51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pwiz_tools/Skyline/Controls/StatementCompletionTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,11 @@ public void ShowStatementCompletionForm(IList<ListViewItem> items)
StatementCompletionForm.SetListItems(items);
StatementCompletionForm.ResizeToIdealSize(ScreenRect);
if (show)
{
StatementCompletionForm.Show(TextBox);
// Resize again in case the form was resized while being shown
StatementCompletionForm.ResizeToIdealSize(ScreenRect);
}
}

public void ListView_MouseDown(object sender, MouseEventArgs e)
Expand Down

0 comments on commit 30b9a51

Please sign in to comment.