mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed a sizing issue in FlexboxComponent.
This commit is contained in:
parent
714be4b52a
commit
3ff5f90f36
|
@ -173,7 +173,7 @@ void FlexboxComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
mItemMargin = elem->get<glm::vec2>("itemMargin");
|
||||
|
||||
if (elem->has("itemWidth"))
|
||||
mItemWidth = elem->get<float>("itemWidth") * scale.x;
|
||||
mItemWidth = floorf(elem->get<float>("itemWidth") * scale.x);
|
||||
|
||||
GuiComponent::applyTheme(theme, view, element, properties);
|
||||
|
||||
|
|
Loading…
Reference in a new issue