TextComponent now sets rotation to zero if it's attempted to be combined with a horizontal container

This commit is contained in:
Leon Styhre 2023-08-08 21:02:33 +02:00
parent d3b4f2f252
commit 950541b261

View file

@ -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 "