Fixed a tiny alignment issue in the scraper interface

This commit is contained in:
Leon Styhre 2023-10-16 20:01:09 +02:00
parent c97555a4c6
commit a36f866278

View file

@ -183,8 +183,9 @@ GuiScraperSearch::~GuiScraperSearch()
void GuiScraperSearch::onSizeChanged()
{
mGrid.setSize(glm::vec2 {mSize.x, (mResultList->getRowHeight() * mRowCount) +
std::round(mRenderer->getScreenHeightModifier())});
mGrid.setSize(
glm::vec2 {std::round(mSize.x), (mResultList->getRowHeight() * mRowCount) +
std::round(mRenderer->getScreenHeightModifier())});
if (mSize.x == 0 || mSize.y == 0)
return;