X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42463de2678493f48631c42b4d1a7152c2786893..77c46f00b51b8476ec53691dabbc2fa8a7f6a165:/wxPython/wx/lib/floatcanvas/NavCanvas.py diff --git a/wxPython/wx/lib/floatcanvas/NavCanvas.py b/wxPython/wx/lib/floatcanvas/NavCanvas.py index 5d7ee0cadc..6a2f788649 100644 --- a/wxPython/wx/lib/floatcanvas/NavCanvas.py +++ b/wxPython/wx/lib/floatcanvas/NavCanvas.py @@ -100,7 +100,8 @@ class NavCanvas(wx.Panel): wx.EVT_BUTTON(self, ID_ZOOM_TO_FIT_BUTTON, self.ZoomToFit) tb.Realize() - tb.SetSizeHints(tb.GetSize()) + S = tb.GetSize() + tb.SetSizeHints(S[0],S[1]) return tb def SetToolMode(self,event):