Commit 64d841e7 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: ImagePanel does not set its minimum/best size - this is left entirely up

to application code.
parent 9c14a0c6
......@@ -43,10 +43,6 @@ class ImagePanel(wx.Panel):
self.__image = image
if image is not None: self.SetMinSize(image.GetSize())
else: self.SetMinSize((0, 0))
......@@ -58,14 +54,6 @@ class ImagePanel(wx.Panel):
def DoGetBestSize(self):
"""Returns the size of the image being displayed.
if self.__image is None: return (0, 0)
else: return self.__image.GetSize()
def Draw(self, ev=None):
"""Draws this ``ImagePanel``. The image is scaled to the current panel
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment