Prevent last line of popup to be cut off

We didn't take the y offset into account

CURA-9112
This commit is contained in:
Jaime van Kessel 2022-04-28 13:23:41 +02:00
parent a2d721b6ac
commit 2ecec1fa37
2 changed files with 9 additions and 3 deletions

View file

@ -63,7 +63,7 @@ UM.PointingRectangle
{
id: textScroll
width: parent.width
height: Math.min(label.height, base.parent.height)
height: Math.min(label.height + UM.Theme.getSize("tooltip_margins").height, base.parent.height)
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded