From 00e6908ccd36a15c6f56a1bf42136039093253db Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Sun, 21 Jan 2024 15:42:19 +0100
Subject: [PATCH] Fixed an issue where the last row of grids with
 fractionalRows set to true would sometimes not render correctly

---
 es-core/src/components/primary/GridComponent.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/es-core/src/components/primary/GridComponent.h b/es-core/src/components/primary/GridComponent.h
index 40447e317..939edc5e2 100644
--- a/es-core/src/components/primary/GridComponent.h
+++ b/es-core/src/components/primary/GridComponent.h
@@ -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;
         }