Some minor adjustments to GuiScraperSearch and GuiThemeDownloader

This commit is contained in:
Leon Styhre 2023-07-29 18:39:20 +02:00
parent 856f2c8b0b
commit abc3eab99c
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -1088,8 +1088,9 @@ void GuiThemeDownloader::onSizeChanged()
mGrid.setSize(mSize);
mCenterGrid->setSize(glm::vec2 {std::round(mSize.x), (mList->getRowHeight() * 9.0f) +
mRenderer->getScreenHeightModifier()});
mCenterGrid->setSize(
glm::vec2 {std::round(mSize.x), (mList->getRowHeight() * 9.0f) +
std::round(mRenderer->getScreenHeightModifier())});
mCenterGrid->setPosition(glm::vec3 {0.0f, mGrid.getRowHeight(0) + mGrid.getRowHeight(1), 0.0f});
mBackground.fitTo(mSize);
mScreenshot->setMaxSize(mCenterGrid->getColWidth(1) + mCenterGrid->getColWidth(2) +