Fixed a sizing issue in OptionListComponent.

This commit is contained in:
Leon Styhre 2021-09-28 23:02:27 +02:00
parent 49347baffe
commit 5366af6999

View file

@ -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++) {