diff --git a/pwiz_tools/Skyline/Controls/StatementCompletionTextBox.cs b/pwiz_tools/Skyline/Controls/StatementCompletionTextBox.cs index 3211feaf35..1bde5f2124 100644 --- a/pwiz_tools/Skyline/Controls/StatementCompletionTextBox.cs +++ b/pwiz_tools/Skyline/Controls/StatementCompletionTextBox.cs @@ -301,7 +301,11 @@ public void ShowStatementCompletionForm(IList 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)