Skip to content

Commit

Permalink
Separator() within column correctly vertical offset all columns conte…
Browse files Browse the repository at this point in the history
…nt (pointed out in #125)
  • Loading branch information
ocornut committed Feb 22, 2015
1 parent 2e9dea0 commit 5b59f22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5b59f22

Please sign in to comment.