// Popups, menus and childs bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups)
// FIXME: the if/else could probably be removed, "reduce artifacts" section for all windows.
// We give windows non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups)
// FIXME: Essentially we want to restrict manual resizing to WindowMinSize+Decoration, and allow api resizing to be smaller.
// Perhaps should tend further a neater test for this.
size_min.y=ImMax(size_min.y,window_for_height->TitleBarHeight()+window_for_height->MenuBarHeight()+ImMax(0.0f,g.Style.WindowRounding-1.0f));// Reduce artifacts with very small windows
// FIXME: _ChildWindow + _Popup windows may want resize grips.
intborder_hovered=-1,border_held=-1;
ImU32resize_grip_col[4]={};
constintresize_grip_count=(window->Flags&ImGuiWindowFlags_ChildWindow)?0:g.IO.ConfigWindowsResizeFromEdges?2:1;// Allow resize from lower-left if we have the mouse cursor feedback for it.