mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
TextComponent now sets rotation to zero if it's attempted to be combined with a horizontal container
This commit is contained in:
parent
d3b4f2f252
commit
950541b261
|
@ -563,6 +563,8 @@ void TextComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
glm::clamp(elem->get<float>("containerStartDelay"), 0.0f, 10.0f) * 1000.0f;
|
||||
}
|
||||
mHorizontalScrolling = true;
|
||||
// Rotation can't be combined with a scrolling horizontal container.
|
||||
mRotation = 0.0f;
|
||||
}
|
||||
else if (containerType != "vertical") {
|
||||
LOG(LogError) << "TextComponent: Invalid theme configuration, property "
|
||||
|
|
Loading…
Reference in a new issue