Skip to content

Commit

Permalink
Fixed broken geometry after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Nov 24, 2024
1 parent 9f041f9 commit 09788ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/multimenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,10 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo
// Add the search edit box
auto searchBox = std::make_shared<W_EDITBOX>();
requestForm->attach(searchBox);
searchBox->setGeometry(3, requestForm->height() - MULTIOP_SEARCHBOXH - 3, requestForm->width() - 6, MULTIOP_SEARCHBOXH);
searchBox->setGeometry(3,
requestForm->height() - MULTIOP_SEARCHBOXH - 3,
requestForm->width() - authorCbDimentions.x - 9,
MULTIOP_SEARCHBOXH);
searchBox->setBoxColours(WZCOL_MENU_BORDER, WZCOL_MENU_BORDER, WZCOL_MENU_BACKGROUND);
searchBox->setPlaceholder(_("Search for map"));
searchBox->setString(WzString::fromUtf8(current_searchString));
Expand Down

0 comments on commit 09788ec

Please sign in to comment.