set min size for params dialog (#1107)

pull/1113/head
Kaalleen 2021-03-28 10:55:31 +02:00 zatwierdzone przez GitHub
rodzic 71a5d4772a
commit 5f8109b3c3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -460,6 +460,13 @@ class SettingsFrame(wx.Frame):
sizer_1.Add(sizer_3, 0, wx.ALIGN_RIGHT, 0)
self.SetSizer(sizer_1)
sizer_1.Fit(self)
# prevent the param dialog to become smaller than 500*400
# otherwise the scrollbar jumps to the side and produces a
# deprecation warning in wxpythons scrolledpanel.py line 225 -
# which is expecting an integer, but uses previously a division
self.SetSizeHints(500, 400)
self.Layout()
# end wxGlade