diff --git a/es-core/src/components/FlexboxComponent.cpp b/es-core/src/components/FlexboxComponent.cpp index 76918b086..2e1262a07 100644 --- a/es-core/src/components/FlexboxComponent.cpp +++ b/es-core/src/components/FlexboxComponent.cpp @@ -173,7 +173,7 @@ void FlexboxComponent::applyTheme(const std::shared_ptr& theme, mItemMargin = elem->get("itemMargin"); if (elem->has("itemWidth")) - mItemWidth = elem->get("itemWidth") * scale.x; + mItemWidth = floorf(elem->get("itemWidth") * scale.x); GuiComponent::applyTheme(theme, view, element, properties);