Skip to content

Commit

Permalink
overlay: Handle invalid sizeHint
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Aug 16, 2017
1 parent 4e05e6d commit 3df1f8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Orange/widgets/utils/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ def __layout(self):
hpolicy = policy.horizontalPolicy()
vpolicy = policy.verticalPolicy()

if not effectivesh.isValid():
effectivesh = QSize(0, 0)
vpolicy = hpolicy = QSizePolicy.Ignored

def getsize(hint, minimum, maximum, policy):
if policy == QSizePolicy.Ignored:
return maximum
Expand Down

0 comments on commit 3df1f8d

Please sign in to comment.