diff --git a/es-core/src/components/ComponentList.cpp b/es-core/src/components/ComponentList.cpp index cee1ab3bb..c9d4d7b38 100644 --- a/es-core/src/components/ComponentList.cpp +++ b/es-core/src/components/ComponentList.cpp @@ -448,7 +448,7 @@ void ComponentList::updateElementPosition(const ComponentListRow& row) const auto comp = row.elements.at(i).component; // Center vertically. - comp->setPosition(x, (rowHeight - comp->getSize().y) / 2.0f + yOffset); + comp->setPosition(x, std::round((rowHeight - comp->getSize().y) / 2.0f + yOffset)); x += comp->getSize().x; } }