From 81fe8976dd033f0c0728aec5ab87b3071a05d114 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Mon, 19 Jul 2021 13:05:12 +0300 Subject: [PATCH] [#1945] Fixed ToolTip position when there is no space Closes #1945 --- ui/shared/status/StatusToolTip.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/shared/status/StatusToolTip.qml b/ui/shared/status/StatusToolTip.qml index 5651bf1522..d53a2ee846 100644 --- a/ui/shared/status/StatusToolTip.qml +++ b/ui/shared/status/StatusToolTip.qml @@ -14,6 +14,7 @@ ToolTip { topPadding: Style.current.smallPadding bottomPadding: Style.current.smallPadding delay: 200 + background: Item { id: tooltipBg Rectangle { @@ -41,7 +42,7 @@ ToolTip { } } y: { - if (orientation === "bottom") { + if ((orientation === "bottom") || (tooltip.y > 0)) { return -height / 2 + 5 } if (orientation === "top") { @@ -64,4 +65,3 @@ ToolTip { bottomPadding: Style.current.smallPadding } } -