Fixed a small alignment issue in ComponentList.

This commit is contained in:
Leon Styhre 2021-11-11 19:43:58 +01:00
parent 9faa509d19
commit 99d0f17e6b

View file

@ -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;
}
}