diff --git a/Source/Core/DolphinQt2/SearchBar.cpp b/Source/Core/DolphinQt2/SearchBar.cpp index 27ed057f52..71b38bf92f 100644 --- a/Source/Core/DolphinQt2/SearchBar.cpp +++ b/Source/Core/DolphinQt2/SearchBar.cpp @@ -30,7 +30,7 @@ void SearchBar::CreateWidgets() layout->addWidget(m_search_edit); layout->addWidget(m_close_button); - layout->setMargin(0); + layout->setSizeConstraint(QLayout::SetMinAndMaxSize); setLayout(layout); }