mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-15 00:44:20 +00:00
Docking: Fixed size constraints not working on single window holding on a dock id (still doesn't work on docked windows).
This commit is contained in:
parent
d378e4088f
commit
c1ab3c406f
2 changed files with 4 additions and 2 deletions
|
|
@ -6383,7 +6383,8 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
|
|||
IM_ASSERT(window->DockNode != NULL);
|
||||
|
||||
// Docking currently override constraints
|
||||
g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint;
|
||||
if (window->DockIsActive)
|
||||
g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint;
|
||||
|
||||
// Amend the Appearing flag
|
||||
if (window->DockTabIsVisible && !dock_tab_was_visible && dock_node_was_visible && !window->Appearing && !window_was_appearing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue