From 12f7d103be9550c7a7dfa6887d24265ea9223a9a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 20 Oct 2023 17:42:40 +0200 Subject: [PATCH] Fixed an issue where the textRelativeScale property was not working correctly for the grid element --- es-core/src/components/primary/GridComponent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/primary/GridComponent.h b/es-core/src/components/primary/GridComponent.h index f87aa9390..7d2b0ef1a 100644 --- a/es-core/src/components/primary/GridComponent.h +++ b/es-core/src/components/primary/GridComponent.h @@ -372,8 +372,8 @@ void GridComponent::addEntry(Entry& entry, const std::shared_ptr& auto text = std::make_shared( entry.name, mFont, 0x000000FF, Alignment::ALIGN_CENTER, Alignment::ALIGN_CENTER, glm::vec3 {0.0f, 0.0f, 0.0f}, mItemSize * mTextRelativeScale, 0x00000000, mLineSpacing, - mTextRelativeScale, mTextHorizontalScrolling, mTextHorizontalScrollSpeed, - mTextHorizontalScrollDelay, mTextHorizontalScrollGap); + 1.0f, mTextHorizontalScrolling, mTextHorizontalScrollSpeed, mTextHorizontalScrollDelay, + mTextHorizontalScrollGap); text->setOrigin(0.5f, 0.5f); text->setColor(mTextColor); text->setBackgroundColor(mTextBackgroundColor);