From 5366af69995df93199b5f0ba3a5061197edd575e Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Tue, 28 Sep 2021 23:02:27 +0200
Subject: [PATCH] Fixed a sizing issue in OptionListComponent.

---
 es-core/src/components/OptionListComponent.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/es-core/src/components/OptionListComponent.h b/es-core/src/components/OptionListComponent.h
index 3549eafb4..5a2f4de92 100644
--- a/es-core/src/components/OptionListComponent.h
+++ b/es-core/src/components/OptionListComponent.h
@@ -261,8 +261,7 @@ private:
         }
         else {
             // Make a size update so the text for the first entry is properly aligned.
-            if (mText.getSize().x > 0.0f && mText.getSize().y > 0.0f)
-                setSize(mText.getSize());
+            setSize(mLeftArrow.getSize() + mRightArrow.getSize());
 
             // Display the selected entry and left/right option arrows.
             for (auto it = mEntries.cbegin(); it != mEntries.cend(); it++) {