Skip to content

Commit b518f06

Browse files
committed
VerticalItemDelegate: Do not cut long vertical labels
1 parent 087031b commit b518f06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Orange/widgets/gui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,6 +3121,8 @@ def paint(self, painter, option, index):
31213121
offset = -offset
31223122

31233123
textrect.translate(0, offset)
3124+
if brect.width() > itemrect.width():
3125+
textrect.setWidth(brect.width())
31243126

31253127
painter.translate(option.rect.x(), option.rect.bottom())
31263128
painter.rotate(-90)

0 commit comments

Comments
 (0)