Fixed an issue where the last row of grids with fractionalRows set to true would sometimes not render correctly

This commit is contained in:
Leon Styhre 2024-01-21 15:42:19 +01:00
parent 531c72cfb7
commit 00e6908ccd

View file

@ -675,7 +675,7 @@ template <typename T> void GridComponent<T>::render(const glm::mat4& parentTrans
int loadedItems {0};
if (currRow > 0) {
if (GuiComponent::isAnimationPlaying(0) || mItemSpacing.y < mVerticalMargin) {
if (GuiComponent::isAnimationPlaying(0) || mItemSpacing.y <= mVerticalMargin) {
loadItems += mColumns;
startPos = (currRow - 1) * mColumns;
}