Skip to content

Commit

Permalink
graphicstextlist: Fix size/spacing adjustment for single item
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 15, 2020
1 parent 4a0066c commit 4e0175f
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 4e0175f

Please sign in to comment.