1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-12-13 16:31:14 +01:00

Navigation branch fix (we changed Clip)

This commit is contained in:
omar 2017-08-22 17:44:49 +08:00
parent 53e73182ff
commit 6c82af2b96

View File

@ -11066,7 +11066,7 @@ void ImGui::BeginColumns(const char* id, int columns_count, ImGuiColumnsFlags fl
float clip_x1 = ImFloor(0.5f + window->Pos.x + GetColumnOffset(column_index) - 1.0f);
float clip_x2 = ImFloor(0.5f + window->Pos.x + GetColumnOffset(column_index + 1) - 1.0f);
window->DC.ColumnsData[column_index].ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX);
window->DC.ColumnsData[column_index].ClipRect.Clip(window->ClipRect);
window->ClipRect.Clip(window->DC.ColumnsData[column_index].ClipRect);
}
window->DrawList->ChannelsSplit(window->DC.ColumnsCount);