mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-14 00:34:18 +00:00
This commit is contained in:
parent
27c735e3e9
commit
f4942bca32
2 changed files with 2 additions and 1 deletions
|
|
@ -6860,7 +6860,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
|
|||
// LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies)
|
||||
// We read Style data after the call to UpdateSelectWindowViewport() which might be swapping the style.
|
||||
|
||||
if (flags & ImGuiWindowFlags_ChildWindow)
|
||||
if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow))
|
||||
window->WindowBorderSize = style.ChildBorderSize;
|
||||
else
|
||||
window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue