qml: calculate height properly in PointingTooltip

Height should take the arrow area into consideration.
This commit is contained in:
Fatih Uzunoglu 2024-10-29 18:48:49 +02:00 committed by Steve Lhomme
parent d689072f0d
commit 554ab5d40f

View File

@ -26,6 +26,9 @@ ToolTipExt {
margins: 0
padding: VLCStyle.margin_xxsmall
height: implicitHeight + background.arrowHeight
bottomInset: height - implicitHeight
x: _x
y: pos.y - (implicitHeight + arrowArea.implicitHeight + VLCStyle.dp(7.5))
@ -37,6 +40,8 @@ ToolTipExt {
color: pointingTooltip.colorContext.bg.primary
radius: VLCStyle.dp(6, VLCStyle.scale)
readonly property real arrowHeight: arrow.implicitHeight + border.width
Item {
id: arrowArea