mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-18 01:06:45 +01:00
Columns: Undo accidental change from 807d4ff92cb568f77e3a144a0e9c9740de5b679e
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…
x
Reference in New Issue
Block a user