diff --git a/docs/changes.txt b/docs/changes.txt index e94d34ca3c..63a03e12c8 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -239,6 +239,7 @@ All (GUI): - Fix grid window scrollbars when freezing part of the grid (#22602). - Avoid warnings with wxStaticText flags in C++20 (David Connet, #22656). +- Fix AUI floating pane position when dragging (Konstantin S. Matveyev, #22533). wxGTK: diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 628626de9d..fac030ca96 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -207,7 +207,7 @@ void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event) if (m_ownerMgr) { m_ownerMgr->GetPane(m_paneWindow). - floating_pos = event.GetPosition(); + floating_pos = GetRect().GetPosition(); } if (!m_solidDrag)