Autoresize UriLocationEditor dialog window
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 07 Jun 2018 14:45:03 +0300
changeset 2176 748017ca4151
parent 2175 667f7de69cf6
child 2177 10aa87518401
Autoresize UriLocationEditor dialog window
controls/UriLocationEditor.py
--- a/controls/UriLocationEditor.py	Thu Jun 07 14:12:18 2018 +0300
+++ b/controls/UriLocationEditor.py	Thu Jun 07 14:45:03 2018 +0300
@@ -39,6 +39,8 @@
         self.mainSizer.Add(self.PanelSizer, border=5, flag=wx.ALL)
         self.mainSizer.Add(self.ButtonSizer, border=5, flag=wx.BOTTOM|wx.ALIGN_CENTER_HORIZONTAL)
         self.SetSizer(self.mainSizer)
+        self.Layout()
+        self.Fit()
 
     def __init__(self, parent, uri):
         self.URITYPES = ["- Select URI type -"]