mirror of
https://github.com/videolan/vlc.git
synced 2024-11-27 03:47:46 +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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user