]> git.saurik.com Git - wxWidgets.git/commitdiff
Work around problems with sizing floating panes on GTK
authorAlex Bligh <alex@alex.org.uk>
Tue, 25 Jul 2006 18:46:12 +0000 (18:46 +0000)
committerAlex Bligh <alex@alex.org.uk>
Tue, 25 Jul 2006 18:46:12 +0000 (18:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/floatpane.cpp

index b365752ee184e09d9d248844ae617fbc9ef9c1e4..82bd93fb7d05807c45587bf57f44196e88683662 100644 (file)
@@ -125,6 +125,16 @@ void wxFloatingPane::OnClose(wxCloseEvent& evt)
 
 void wxFloatingPane::OnMoveEvent(wxMoveEvent& event)
 {
+#ifdef __WXGTK__
+    // On wxGTK 2.6 and 2.7 for some unknown reason, wxSizeEvents are not
+    // emitted for wxFloatingPanes when they are manually resized.
+    // See Bug #1528554.
+    // However, it does (fortunately) wrongly emit wxMoveEvent in this scenario.
+    // So we having on that to update the floating pane size - let's hope noone
+    // fixes this useful bug, without fixing the above.
+    m_owner_mgr->OnFloatingPaneResized(m_pane_window, GetSize());
+#endif
+
     wxRect win_rect = GetRect();
 
     // skip the first move event