diff options
| author | Malkierian <malkierian@gmail.com> | 2025-07-29 05:59:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 06:59:01 -0600 |
| commit | 4ecd8c8b75232eb8fa79a0eb3515ba54e4da250c (patch) | |
| tree | 897f9d7ef03ec7e356a272b0f7d32d77b865606e | |
| parent | 3431d1dce0d571207ab7faf690adc22bc13ff5ea (diff) | |
Remove the Spacing() calls after MenuDrawItem and wrap the loop with ItemSpacing.y changes. (#515)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
| -rw-r--r-- | src/port/ui/Menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/ui/Menu.cpp b/src/port/ui/Menu.cpp index 9c68d2786..0c18e27af 100644 --- a/src/port/ui/Menu.cpp +++ b/src/port/ui/Menu.cpp @@ -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(); |
