summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-03-28 10:55:31 +0200
committerGitHub <noreply@github.com>2021-03-28 10:55:31 +0200
commit5f8109b3c3ba2b01ee22840e7c353593708d25aa (patch)
tree1bff1469dc16b9e782713b4d7e01ac074528cf75
parent71a5d4772a64891223b30eda1d97deea5f8926e0 (diff)
set min size for params dialog (#1107)
-rw-r--r--lib/extensions/params.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 2501f157..1982a861 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -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