diff --git a/wx/lib/agw/supertooltip.py b/wx/lib/agw/supertooltip.py index 3cebe316..48fec3a5 100644 --- a/wx/lib/agw/supertooltip.py +++ b/wx/lib/agw/supertooltip.py @@ -380,7 +380,7 @@ class ToolTipWindowBase(object): self._storeHyperLinkInfo(xText, yText, textWidth, textHeight, hl) toAdd = 0 - if bmpHeight > textHeight: + if bmpHeight > messageHeight: yPos += 2*self._spacing + bmpHeight toAdd = self._spacing else: