From abc3eab99c5d708c3ee1c3cb3ee4b874f0966fd2 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 29 Jul 2023 18:39:20 +0200 Subject: [PATCH] Some minor adjustments to GuiScraperSearch and GuiThemeDownloader --- es-app/src/guis/GuiScraperSearch.cpp | 3 ++- es-app/src/guis/GuiThemeDownloader.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 9200ebf75..8c67b8292 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -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; diff --git a/es-app/src/guis/GuiThemeDownloader.cpp b/es-app/src/guis/GuiThemeDownloader.cpp index c3a03c7e3..67cfd3cd3 100644 --- a/es-app/src/guis/GuiThemeDownloader.cpp +++ b/es-app/src/guis/GuiThemeDownloader.cpp @@ -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) +