font. This is how the native static text widgets behave.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44212
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
style = self.GetWindowStyleFlag()
self.InvalidateBestSize()
if not style & wx.ST_NO_AUTORESIZE:
- self.SetInitialSize(self.GetBestSize())
+ self.SetSize(self.GetBestSize())
self.Refresh()
style = self.GetWindowStyleFlag()
self.InvalidateBestSize()
if not style & wx.ST_NO_AUTORESIZE:
- self.SetInitialSize(self.GetBestSize())
+ self.SetSize(self.GetBestSize())
self.Refresh()