Fix arrow position if tooltip is too big to fit on the screen

This commit is contained in:
Ghostkeeper 2020-08-05 02:44:19 +02:00
parent 3b8ae6439c
commit 1085709407
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -67,7 +67,7 @@ UM.PointingRectangle
{
if(containsMouse && base.opacity > 0)
{
base.show(Qt.point(base.x + base.width, base.y + UM.Theme.getSize("tooltip_arrow_margins").height));
base.show(Qt.point(target.x - 1, target.y - UM.Theme.getSize("tooltip_arrow_margins").height / 2)); //Same arrow position as before.
}
else
{