mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Fixed a small alignment issue in ComponentList.
This commit is contained in:
parent
9faa509d19
commit
99d0f17e6b
|
@ -448,7 +448,7 @@ void ComponentList::updateElementPosition(const ComponentListRow& row)
|
||||||
const auto comp = row.elements.at(i).component;
|
const auto comp = row.elements.at(i).component;
|
||||||
|
|
||||||
// Center vertically.
|
// 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;
|
x += comp->getSize().x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue