diff --git a/es-app/src/views/GamelistLegacy.h b/es-app/src/views/GamelistLegacy.h index 5eced0475..0cee60960 100644 --- a/es-app/src/views/GamelistLegacy.h +++ b/es-app/src/views/GamelistLegacy.h @@ -192,9 +192,8 @@ void GamelistView::legacyPopulateFields() // Scrollable container (game description). mContainerComponents.push_back(std::make_unique()); mContainerComponents.back()->setThemeMetadata("text_md_description"); - mContainerComponents.back()->setSize(mSize.x * (0.50f - 2.0f * padding), - mSize.y - mContainerComponents.back()->getPosition().y); mContainerComponents.back()->setAutoScroll(true); + mContainerComponents.back()->setVisible(false); mContainerComponents.back()->setDefaultZIndex(40.0f); addChild(mContainerComponents.back().get()); @@ -743,7 +742,7 @@ void GamelistView::legacyInitMDValues() for (auto& container : mContainerComponents) { container->setPosition(container->getPosition().x, bottom + mSize.y * 0.01f); - container->setSize(container->getSize().x, mSize.y - container->getPosition().y); + container->setSize(mSize.x * 0.2f, mSize.y * 0.2f); } } diff --git a/es-core/src/components/ScrollableContainer.cpp b/es-core/src/components/ScrollableContainer.cpp index 10557e6b9..0e93d6cf2 100644 --- a/es-core/src/components/ScrollableContainer.cpp +++ b/es-core/src/components/ScrollableContainer.cpp @@ -108,7 +108,7 @@ void ScrollableContainer::applyTheme(const std::shared_ptr& theme, void ScrollableContainer::update(int deltaTime) { - if (mSize == glm::vec2 {0.0f, 0.0f}) + if (!isVisible() || mSize == glm::vec2 {0.0f, 0.0f}) return; // Don't scroll if the media viewer or screensaver is active or if text scrolling is disabled;