Skip to content

Commit

Permalink
VerticalItemDelegate: Do not cut long vertical labels
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed May 16, 2019
1 parent 087031b commit b518f06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Orange/widgets/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -3121,6 +3121,8 @@ def paint(self, painter, option, index):
offset = -offset

textrect.translate(0, offset)
if brect.width() > itemrect.width():
textrect.setWidth(brect.width())

painter.translate(option.rect.x(), option.rect.bottom())
painter.rotate(-90)
Expand Down

0 comments on commit b518f06

Please sign in to comment.