Fixed an issue where scrollable container properties had no effect unless the container property was explicitly set to true.

This commit is contained in:
Leon Styhre 2023-02-25 14:40:55 +01:00
parent 8408428f61
commit b8c3303f80

View file

@ -98,7 +98,7 @@ void ScrollableContainer::applyTheme(const std::shared_ptr<ThemeData>& theme,
GuiComponent::applyTheme(theme, view, element, properties);
const ThemeData::ThemeElement* elem {theme->getElement(view, element, "text")};
if (!elem || !elem->has("container"))
if (!elem)
return;
if (elem->has("containerVerticalSnap"))