mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 14:16:36 +00:00
Columns: Undo accidental change from 807d4ff92c
This commit is contained in:
parent
6e2e60ffad
commit
a9009b133c
@ -8785,7 +8785,7 @@ float ImGui::GetColumnOffset(int column_index)
|
|||||||
|
|
||||||
const float content_region_width = window->SizeContentsExplicit.x ? window->SizeContentsExplicit.x : window->Size.x;
|
const float content_region_width = window->SizeContentsExplicit.x ? window->SizeContentsExplicit.x : window->Size.x;
|
||||||
const float min_x = window->DC.IndentX;
|
const float min_x = window->DC.IndentX;
|
||||||
const float max_x = content_region_width - window->Scroll.x - ((window->Flags & ImGuiWindowFlags_NoScrollbar) ? 0.0f : window->ScrollbarSizes.x);// - window->WindowPadding().x;
|
const float max_x = content_region_width - window->Scroll.x - ((window->Flags & ImGuiWindowFlags_NoScrollbar) ? 0.0f : g.Style.ScrollbarSize);// - window->WindowPadding().x;
|
||||||
const float x = min_x + t * (max_x - min_x);
|
const float x = min_x + t * (max_x - min_x);
|
||||||
return (float)(int)x;
|
return (float)(int)x;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user