1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGUI: Remove column width limitation in AutocompleteProvider

This commit is contained in:
Itamar 2021-07-17 17:53:42 +03:00 committed by Andreas Kling
parent 3678f78bfb
commit 4a7be3f81c

View file

@ -102,7 +102,6 @@ void AutocompleteBox::update_suggestions(Vector<AutocompleteProvider::Entry>&& s
model.set_suggestions(move(suggestions));
} else {
m_suggestion_view->set_model(adopt_ref(*new AutocompleteSuggestionModel(move(suggestions))));
m_suggestion_view->set_column_width(1, 100);
m_suggestion_view->update();
if (has_suggestions)
m_suggestion_view->set_cursor(m_suggestion_view->model()->index(0), GUI::AbstractView::SelectionUpdate::Set);