Skip to content

Commit

Permalink
Merge pull request #4777 from ales-erjavec/fixes/graphicstextlist-layout
Browse files Browse the repository at this point in the history
[FIX] graphicstextlist: Fix size/spacing adjustment for single item
  • Loading branch information
ajdapretnar authored May 15, 2020
2 parents 55bb10f + 4e0175f commit 24a4967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/utils/graphicstextlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def __layout(self) -> None:
vspace = crect.height() - (N - 1) * spacing
cell_height = vspace / N

if cell_height > fontheight and N > 1:
if cell_height > fontheight:
# use font height, adjust (widen) spacing.
cell_height = fontheight
spacing = (crect.height() - N * cell_height) / N
Expand Down

0 comments on commit 24a4967

Please sign in to comment.