Adjusted the game description size for the multi-scraper automatic mode.

This commit is contained in:
Leon Styhre 2021-01-17 12:43:31 +01:00
parent 6e4b26daae
commit d2ec969d19

View file

@ -192,17 +192,16 @@ void GuiScraperSearch::onSizeChanged()
resizeMetadata(); resizeMetadata();
if (mSearchType != ALWAYS_ACCEPT_FIRST_RESULT) if (mSearchType != ALWAYS_ACCEPT_FIRST_RESULT)
mDescContainer->setSize(mGrid.getColWidth(1)*boxartCellScale + mDescContainer->setSize(mGrid.getColWidth(1) * boxartCellScale +
mGrid.getColWidth(2), mResultDesc->getFont()->getHeight() * 3); mGrid.getColWidth(2), mResultDesc->getFont()->getHeight() * 3);
else else
mDescContainer->setSize(mGrid.getColWidth(3)*boxartCellScale, mDescContainer->setSize(mGrid.getColWidth(3) * boxartCellScale,
mResultDesc->getFont()->getHeight() * 7); mResultDesc->getFont()->getHeight() * 6);
// Make description text wrap at edge of container. // Make description text wrap at edge of container.
mResultDesc->setSize(mDescContainer->getSize().x(), 0); mResultDesc->setSize(mDescContainer->getSize().x(), 0);
mGrid.onSizeChanged(); mGrid.onSizeChanged();
mBusyAnim.setSize(mSize); mBusyAnim.setSize(mSize);
} }