From 0134b758cfa40218d44fc0b1c4a62244040b26f3 Mon Sep 17 00:00:00 2001 From: Anna Petrasova Date: Wed, 23 Sep 2026 10:10:37 -0400 Subject: [PATCH] wxGUI: Skip size event in MapPanelBase.OnSize to let AUI lay out panes wxWidgets 3.3 (wxPython 4.3) changed wxAuiManager to bind its size handler to the managed window instead of pushing itself as an event handler. Bound handlers run newest first and stop at the first one that does not skip the event, so the map panel's own size handler, bound after the manager was created, swallowed the event. The manager never laid out its panes and the map window kept its initial size. Diagnosed with the help of Claude Code. --- gui/wxpython/gui_core/mapdisp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/wxpython/gui_core/mapdisp.py b/gui/wxpython/gui_core/mapdisp.py index 245d156c5ff..fdc1bf59490 100644 --- a/gui/wxpython/gui_core/mapdisp.py +++ b/gui/wxpython/gui_core/mapdisp.py @@ -156,6 +156,7 @@ def OnSize(self, event): # update statusbar self.StatusbarUpdate() + event.Skip() def OnCloseWindow(self, event): self.Destroy()