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:
Malkierian 2025-07-29 05:59:01 -07:00 committed by GitHub
parent 3431d1dce0
commit 4ecd8c8b75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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();