mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Replaced an alignment hack with a proper fix in OptionListComponent.
Also fixed an issue where the number of selected OptionListComponent entries would not get displayed.
This commit is contained in:
parent
9c20498339
commit
33792baa53
|
@ -185,8 +185,7 @@ public:
|
|||
|
||||
mEntries.push_back(e);
|
||||
|
||||
if (selected)
|
||||
onSelectedChanged();
|
||||
onSelectedChanged();
|
||||
}
|
||||
|
||||
bool selectEntry(unsigned int entry)
|
||||
|
@ -327,9 +326,6 @@ private:
|
|||
mParent->onSizeChanged();
|
||||
}
|
||||
else {
|
||||
// Make a size update so the text for the first entry is properly aligned.
|
||||
setSize(mLeftArrow.getSize() + mRightArrow.getSize());
|
||||
|
||||
// Display the selected entry and left/right option arrows.
|
||||
for (auto it = mEntries.cbegin(); it != mEntries.cend(); it++) {
|
||||
if (it->selected) {
|
||||
|
@ -344,6 +340,7 @@ private:
|
|||
}
|
||||
}
|
||||
}
|
||||
onSizeChanged();
|
||||
}
|
||||
|
||||
std::vector<HelpPrompt> getHelpPrompts() override
|
||||
|
|
Loading…
Reference in a new issue