Closed XertroV closed 2 months ago
Use the child flags parameter instead of the window flags parameter for child flags.
For clarification, this should be:
UI::BeginChild(
"blah",
vec2(-1, 140),
UI::ChildFlags::AlwaysAutoResize | UI::ChildFlags::Border,
UI::WindowFlags::AlwaysVerticalScrollbar
);
ah so the bool was coerced and no compile error thrown
Maybe function signature changes should be added to the changelog
1.26.21:
UI::BeginChild("blah", vec2(-1, 140), true, UI::WindowFlags::AlwaysVerticalScrollbar | UI::ChildFlags::AlwaysAutoResize)
throws:UI assertion failed: (window_flags & ImGuiWindowFlags_AlwaysAutoResize) == 0 && "Cannot specify ImGuiWindowFlags_AlwaysAutoResize for BeginChild(). Use ImGuiChildFlags_AlwaysAutoResize!"