mirror of
https://github.com/videolan/vlc.git
synced 2024-11-30 05:14:21 +08:00
qml: calculate height properly in PointingTooltip
Height should take the arrow area into consideration.
This commit is contained in:
parent
d689072f0d
commit
554ab5d40f
@ -26,6 +26,9 @@ ToolTipExt {
|
|||||||
margins: 0
|
margins: 0
|
||||||
padding: VLCStyle.margin_xxsmall
|
padding: VLCStyle.margin_xxsmall
|
||||||
|
|
||||||
|
height: implicitHeight + background.arrowHeight
|
||||||
|
bottomInset: height - implicitHeight
|
||||||
|
|
||||||
x: _x
|
x: _x
|
||||||
y: pos.y - (implicitHeight + arrowArea.implicitHeight + VLCStyle.dp(7.5))
|
y: pos.y - (implicitHeight + arrowArea.implicitHeight + VLCStyle.dp(7.5))
|
||||||
|
|
||||||
@ -37,6 +40,8 @@ ToolTipExt {
|
|||||||
color: pointingTooltip.colorContext.bg.primary
|
color: pointingTooltip.colorContext.bg.primary
|
||||||
radius: VLCStyle.dp(6, VLCStyle.scale)
|
radius: VLCStyle.dp(6, VLCStyle.scale)
|
||||||
|
|
||||||
|
readonly property real arrowHeight: arrow.implicitHeight + border.width
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: arrowArea
|
id: arrowArea
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user