Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit beff672

Browse files
authored
Merge pull request #14884 from jmoraleda/bug14883
Do not allow canvas size to become smaller than MinSize in wx backend…
2 parents 3419465 + 50206ac commit beff672

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ def _onSize(self, evt):
768768
else:
769769
# variable size
770770
size = self.GetClientSize()
771+
# Do not allow size to become smaller than MinSize
772+
size.IncTo(self.GetMinSize())
771773
if getattr(self, "_width", None):
772774
if size == (self._width, self._height):
773775
# no change in size

0 commit comments

Comments
 (0)