[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1538
Date       : Tue Jul 25 19:50:39 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxXtra/floatpane.cpp

Fix floating panes to note their size changes


Diff:
Index: Trunk/XaraLX/wxXtra/floatpane.cpp
===================================================================
--- Trunk/XaraLX/wxXtra/floatpane.cpp	(revision 1537)
+++ Trunk/XaraLX/wxXtra/floatpane.cpp	(revision 1538)
@@ -116,6 +116,16 @@
 
 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


Xara