Fixed an issue where the origin property did not work correctly for scrollable text containers.

This commit is contained in:
Leon Styhre 2022-09-16 18:52:53 +02:00
parent 7e892a7855
commit bee9cf0623

View file

@ -258,7 +258,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
mContainerComponents.back()->getSize().x, 0.0f); mContainerComponents.back()->getSize().x, 0.0f);
mContainerTextComponents.back()->applyTheme( mContainerTextComponents.back()->applyTheme(
theme, "gamelist", element.first, theme, "gamelist", element.first,
ALL ^ POSITION ^ Z_INDEX ^ ThemeFlags::SIZE ^ VISIBLE ^ ROTATION); ALL ^ POSITION ^ ORIGIN ^ Z_INDEX ^ ThemeFlags::SIZE ^ VISIBLE ^ ROTATION);
if (mContainerTextComponents.back()->getThemeMetadata() != "") if (mContainerTextComponents.back()->getThemeMetadata() != "")
mContainerComponents.back()->setScrollHide(true); mContainerComponents.back()->setScrollHide(true);
else if (mContainerTextComponents.back()->getMetadataElement()) else if (mContainerTextComponents.back()->getMetadataElement())