Browse Source

wxGUI/gui_core: fix 'Set image size' dialog rendered size on wxPython 4.1.1 (#1890)

Tomas Zigo 3 years ago
parent
commit
e03efc238b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_core/dialogs.py

+ 1 - 1
gui/wxpython/gui_core/dialogs.py

@@ -2007,7 +2007,7 @@ class ImageSizeDialog(wx.Dialog):
         sizer.Add(btnsizer, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
 
         self.panel.SetSizer(sizer)
-        sizer.Fit(self.panel)
+        sizer.Fit(self)
         self.Layout()
 
     def GetValues(self):