From 72d10d3baa190be90e1a667a9a6393a91ac66e6d Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 23 Feb 2015 13:35:55 -0600 Subject: [PATCH] Fix SetColumnOffset() subtracting a bool value instead of scrollbar width. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index f234766d..6710a097 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6378,7 +6378,7 @@ void ImGui::SetColumnOffset(int column_index, float offset) const ImGuiID column_id = window->DC.ColumnsSetID + ImGuiID(column_index); const float min_x = window->DC.ColumnsStartX; - const float max_x = window->Size.x - (window->ScrollbarY);// - window->WindowPadding().x; + const float max_x = window->Size.x - (g.Style.ScrollBarWidth);// - window->WindowPadding().x; const float t = (offset - min_x) / (max_x - min_x); window->StateStorage.SetFloat(column_id, t); window->DC.ColumnsOffsetsT[column_index] = t;