What did it do before if the label was too long, just let it overflow the static box? If so then I think that the current behavior is better.
Before it expanded the box to fit the label. I think that is the correct behavior. I'm constructing these on the fly so it isn't obvious how I can compute the size required for the spacer to assure the box is big enough for the label.
I guess I can figure out what font is being used for the label (how?), and get the length on the screen of the text, and set a minimum size...
What did it do before if the label was too long, just let it overflow the static box? If so then I think that the current behavior is better.
Before it expanded the box to fit the label. I think that is the correct behavior.
The best size of the staticbox does still take into account the size of the label, but I don't think that the wx.StaticBoxSizer has ever checked the best size of the staticbox, just the items added to the sizer to be contained within the box.
Ah, I see from your next message you've found a workaround. I was going to suggest something like that.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!