Hi,
Is there a way to align some widgets on the bottom of a dialog ?
By example, I have several Collapsable headers, so the content size is dynamic !
How can I force the "Ok/Cancel" buttons to stay on the bottom ?
Thanks
Krys,
In the absence of better layout helpers, there's a few ways so you can that for now
// Leave room for 1 line below us
ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetItemsLineHeightWithSpacing()));
Ideally ImGui would have layout helpers to make that more straightforward and flexible in more situation, there's a fair amount of work required to get proper layout in.
Sure, layout request a lot of work :-P
Thanks for your help
Most helpful comment
Krys,
In the absence of better layout helpers, there's a few ways so you can that for now
// Leave room for 1 line below us ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetItemsLineHeightWithSpacing()));Ideally ImGui would have layout helpers to make that more straightforward and flexible in more situation, there's a fair amount of work required to get proper layout in.