mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Begin: Removed asserts that got in the way of some flags combination. (#1345)
This commit is contained in:
parent
0978f00911
commit
42a612d7c9
@ -4649,12 +4649,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
|
|||||||
|
|
||||||
// Apply minimum/maximum window size constraints and final size
|
// Apply minimum/maximum window size constraints and final size
|
||||||
window->SizeFull = CalcSizeAfterConstraint(window, window->SizeFull);
|
window->SizeFull = CalcSizeAfterConstraint(window, window->SizeFull);
|
||||||
window->Size = window->Collapsed ? window->TitleBarRect().GetSize() : window->SizeFull;
|
window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull;
|
||||||
if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup))
|
|
||||||
{
|
|
||||||
IM_ASSERT(window_size_x_set_by_api && window_size_y_set_by_api); // Submitted by BeginChild()
|
|
||||||
window->Size = window->SizeFull;
|
|
||||||
}
|
|
||||||
|
|
||||||
// SCROLLBAR STATUS
|
// SCROLLBAR STATUS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user