Skip to content

Commit

Permalink
Columns: Fixed EndColumns() not repositioning the cursor. (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Aug 20, 2017
1 parent 19a42cb commit 3bf2af2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10126,6 +10126,8 @@ void ImGui::EndColumns()
window->DC.ColumnsCount = 1;
window->DC.ColumnsFlags = 0;
window->DC.ColumnsData.resize(0);
window->DC.ColumnsOffsetX = 0.0f;
window->DC.CursorPos.x = (float)(int)(window->Pos.x + window->DC.IndentX + window->DC.ColumnsOffsetX);
}

// [2017/08: This is currently the only public API, while we are working on making BeginColumns/EndColumns user-facing]
Expand Down

0 comments on commit 3bf2af2

Please sign in to comment.