mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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,7 +185,6 @@ public:
|
||||||
|
|
||||||
mEntries.push_back(e);
|
mEntries.push_back(e);
|
||||||
|
|
||||||
if (selected)
|
|
||||||
onSelectedChanged();
|
onSelectedChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -327,9 +326,6 @@ private:
|
||||||
mParent->onSizeChanged();
|
mParent->onSizeChanged();
|
||||||
}
|
}
|
||||||
else {
|
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.
|
// 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++) {
|
||||||
if (it->selected) {
|
if (it->selected) {
|
||||||
|
|
@ -344,6 +340,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onSizeChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<HelpPrompt> getHelpPrompts() override
|
std::vector<HelpPrompt> getHelpPrompts() override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue