mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-23 23:05:40 +00:00
Fixed a sizing issue in OptionListComponent.
This commit is contained in:
parent
49347baffe
commit
5366af6999
|
@ -261,8 +261,7 @@ private:
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Make a size update so the text for the first entry is properly aligned.
|
// 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(mLeftArrow.getSize() + mRightArrow.getSize());
|
||||||
setSize(mText.getSize());
|
|
||||||
|
|
||||||
// Display the selected entry and left/right option arrows.
|
// Display the selected entry and left/right option arrows.
|
||||||
for (auto it = mEntries.cbegin(); it != mEntries.cend(); it++) {
|
for (auto it = mEntries.cbegin(); it != mEntries.cend(); it++) {
|
||||||
|
|
Loading…
Reference in a new issue