Not sure if this will help you, but for me, Fit() usually doesn’t do
what I expect intuitively. What seems to work better is using the “best
size” rather than the “minimum size”, by doing something along the lines ofself.SetSize(self.GetBestSize())
or if you have a panel as the only child of a frame, something like
frame.SetClientSize(panel.GetBestSize())
Ben
Thanks for the hint Ben,
Unfortunately the (bad) behavior stays the same.
Best regards,
Tom.