Skip to content

Commit

Permalink
fix: tooltip overlaps with dock
Browse files Browse the repository at this point in the history
When the dock triggers overflow, the tooltip overlaps with the dock.

Log: fix tooltip overlaps with dock
issue: linuxdeepin/developer-center#8171
Influence: tooltip display
  • Loading branch information
yixinshark authored and zsien committed Jun 7, 2024
1 parent 670e1cc commit 4caa034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panels/dock/taskmanager/package/AppItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ Item {
interval: 50
onTriggered: {
var point = root.mapToItem(null, root.width / 2, 0)
var AppletPoint = Applet.rootObject.mapToItem(null, root.width / 2, 0)
toolTip.toolTipX = point.x
toolTip.toolTipY = point.y
toolTip.toolTipY = root.useColumnLayout ? point.y : AppletPoint.y
toolTip.open()
}
}
Expand Down

0 comments on commit 4caa034

Please sign in to comment.