From 8ba4233b9bc8769c1365e41c0f67a8097fc37984 Mon Sep 17 00:00:00 2001 From: DanS Date: Sun, 7 Jun 2026 11:34:26 -0500 Subject: [PATCH] fix(lite): grow the Network tab scroll region with a Dummy (ImGui layout) Each server card advanced to the next via a bare SetCursorScreenPos, which ImGui won't use to extend the scroll region's content height ("Code uses SetCursorPos() to extend window boundaries ... submit an item e.g. Dummy() afterwards"). Beyond the warning, this meant cards past the fold wouldn't scroll. Advance with an ImGui::Dummy(cardW, gap) below each card so the content height grows correctly. Co-Authored-By: Claude Opus 4.8 --- src/ui/windows/network_tab.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/windows/network_tab.cpp b/src/ui/windows/network_tab.cpp index e6be08e..cebbdb8 100644 --- a/src/ui/windows/network_tab.cpp +++ b/src/ui/windows/network_tab.cpp @@ -246,7 +246,10 @@ void RenderLiteNetworkTab(App* app) ImVec2(hideMin.x + (hideW - icoSz.x) * 0.5f, cardMin.y + (cardH - icoSz.y) * 0.5f), hideHov ? OnSurface() : OnSurfaceDisabled(), eye); - ImGui::SetCursorScreenPos(ImVec2(cardMin.x, cardMax.y + gap)); + // Advance to the next card via a real item (Dummy) below the card, so the scroll region's + // content height actually grows — ImGui won't extend bounds from a bare SetCursorScreenPos. + ImGui::SetCursorScreenPos(ImVec2(cardMin.x, cardMax.y)); + ImGui::Dummy(ImVec2(cardW, gap)); }; // ── Visible servers ────────────────────────────────────────────────────────