From 4e0175f6034ca3f81d3f7cd0589c71bc40a895f6 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Fri, 15 May 2020 11:57:38 +0200 Subject: [PATCH] graphicstextlist: Fix size/spacing adjustment for single item --- Orange/widgets/utils/graphicstextlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/widgets/utils/graphicstextlist.py b/Orange/widgets/utils/graphicstextlist.py index 357fc78590f..4fa52516987 100644 --- a/Orange/widgets/utils/graphicstextlist.py +++ b/Orange/widgets/utils/graphicstextlist.py @@ -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