From 5b59f228ed5e84cf69c49dc9c1daf0b77a713bfa Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 22 Feb 2015 14:43:52 +0000 Subject: [PATCH] Separator() within column correctly vertical offset all columns content (pointed out in #125) --- imgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 972895f1..ed057903 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6210,7 +6210,10 @@ void ImGui::Separator() window->DrawList->AddLine(bb.Min, bb.Max, window->Color(ImGuiCol_Border)); if (window->DC.ColumnsCount > 1) + { PushColumnClipRect(); + window->DC.ColumnsCellMinY = window->DC.CursorPos.y; + } } // A little vertical spacing.