From: Youness Alaoui Date: Fri, 18 Sep 2015 18:05:18 +0000 (-0400) Subject: Finally fix newVersionDialog size issue on wxpython 3.0.1 X-Git-Tag: lulzbot-17.10~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=de54746f8ff3e157afc3b469a7887a8f478f8543;p=cura.git Finally fix newVersionDialog size issue on wxpython 3.0.1 This fixes T177 --- diff --git a/Cura/gui/newVersionDialog.py b/Cura/gui/newVersionDialog.py index 5195076d..5819b382 100644 --- a/Cura/gui/newVersionDialog.py +++ b/Cura/gui/newVersionDialog.py @@ -13,9 +13,6 @@ class newVersionDialog(wx.Dialog): p = wx.Panel(self) self.panel = p - s = wx.BoxSizer() - self.SetSizer(s) - s.Add(p, flag=wx.ALL, border=15) s = wx.BoxSizer(wx.VERTICAL) p.SetSizer(s) @@ -39,9 +36,12 @@ class newVersionDialog(wx.Dialog): self.Bind(wx.EVT_BUTTON, self.OnOk, button) s.Add(button, flag=wx.TOP|wx.ALIGN_RIGHT, border=5) - self.Fit() - self.Centre() + s = wx.BoxSizer() + s.Add(p, flag=wx.ALL, border=15) + self.Layout() + self.SetSizerAndFit(s) + self.Centre() def OnOk(self, e): self.Close()