From 99d0f17e6b1e994df9f6dca2b81cc401f8fb9415 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 11 Nov 2021 19:43:58 +0100 Subject: [PATCH] Fixed a small alignment issue in ComponentList. --- es-core/src/components/ComponentList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/ComponentList.cpp b/es-core/src/components/ComponentList.cpp index 7304e6776..dc0c7257c 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, std::round((rowHeight - comp->getSize().y) / 2.0f + yOffset)); + comp->setPosition(x, (rowHeight - std::round(comp->getSize().y)) / 2.0f + yOffset); x += comp->getSize().x; } }