@ -6015,8 +6015,8 @@ static inline void ClampWindowRect(ImGuiWindow* window, const ImRect& visibility
{
{
ImGuiContext & g = * GImGui ;
ImGuiContext & g = * GImGui ;
ImVec2 size_for_clamping = window - > Size ;
ImVec2 size_for_clamping = window - > Size ;
if ( g . IO . ConfigWindowsMoveFromTitleBarOnly & & ! ( window - > Flags & ImGuiWindowFlags_NoTitleBar ) )
if ( g . IO . ConfigWindowsMoveFromTitleBarOnly & & ( ! ( window - > Flags & ImGuiWindowFlags_NoTitleBar ) | | window - > DockNodeAsHost ) )
size_for_clamping . y = window- > TitleBarHeight ( ) ;
size_for_clamping . y = ImGui: : GetFrameHeight ( ) ; // Not using window->TitleBarHeight() as DockNodeAsHost will report 0.0f here.
window - > Pos = ImClamp ( window - > Pos , visibility_rect . Min - size_for_clamping , visibility_rect . Max ) ;
window - > Pos = ImClamp ( window - > Pos , visibility_rect . Min - size_for_clamping , visibility_rect . Max ) ;
}
}