From: Antonio Ospite Date: Fri, 3 Oct 2014 10:06:29 +0000 (+0200) Subject: Fix setting the view size X-Git-Url: https://git.ao2.it/PoPiPaint.git/commitdiff_plain/b5ba5a82ab4d1abcbe93b11c3e485a67c32a4593?ds=inline Fix setting the view size SetInitialSize() also sets the min size which is needed because the view is added to a sizer. --- diff --git a/CanvasView.py b/CanvasView.py index 28a7d0d..a33ee8d 100755 --- a/CanvasView.py +++ b/CanvasView.py @@ -67,7 +67,7 @@ class CanvasView(wx.Window): self.offset_angle = -pi/2. - self.SetSize((w, h)) + self.SetInitialSize((w, h)) self.SetFocus()