mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-13 05:57:33 -04:00
Remove the Spacing() calls after MenuDrawItem and wrap the loop with ItemSpacing.y changes. (#515)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
@@ -762,11 +762,11 @@ void Menu::DrawElement() {
|
||||
ImGuiWindowFlags_NoTitleBar);
|
||||
}
|
||||
// for (auto& entryName : sidebar->at(sectionIndex).sidebarOrder) {
|
||||
style.ItemSpacing.y = 12;
|
||||
for (auto& entry : sidebar->at(sectionIndex).columnWidgets.at(i)) {
|
||||
MenuDrawItem(entry, 90 / sidebar->at(sectionIndex).columnCount, menuThemeIndex);
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
}
|
||||
style.ItemSpacing.y = 4; // original height
|
||||
//}
|
||||
if (useColumns) {
|
||||
ImGui::EndChild();
|
||||
|
||||
Reference in New Issue
Block a user