]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
Implemented wxDataViewColumn for wxOSX/Cocoa
[wxWidgets.git] / src / aui / framemanager.cpp
index 7bfe00a74f6005f9bf7a8e9275af5f5d9dbb1ce0..a1f7fb11dfe9a5a90ca8dbeef3806cb12d07511b 100644 (file)
@@ -3676,13 +3676,16 @@ void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir)
     HideHint();
 }
 
-void wxAuiManager::OnFloatingPaneResized(wxWindow* wnd, const wxSize& size)
+void wxAuiManager::OnFloatingPaneResized(wxWindow* wnd, const wxRect& rect)
 {
     // try to find the pane
     wxAuiPaneInfo& pane = GetPane(wnd);
     wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found"));
 
-    pane.floating_size = size;
+    pane.FloatingSize(rect.GetWidth(), rect.GetHeight());
+
+    // the top-left position may change as well as the size
+    pane.FloatingPosition(rect.x, rect.y);
 }