Ceil tooltip popup size so right/bottom borders render
Text.implicitWidth/Height can be fractional. Passing those values straight to the PopupWindow rounded the Wayland surface down, clipping the 1px right/bottom border of the bubble.
This commit is contained in:
1 parent
96c5e048cb
commit
182f71a61b
1 file changed
+2
-2
@@ -929,8 +929,8 @@ Item {
|
||||
|
||||
visible: root.tooltipShown && root.tooltipTarget !== null && root.tooltipText !== ""
|
||||
color: "transparent"
|
||||
implicitWidth: tooltipBubble.implicitWidth
|
||||
implicitHeight: tooltipBubble.implicitHeight
|
||||
implicitWidth: Math.ceil(tooltipBubble.implicitWidth)
|
||||
implicitHeight: Math.ceil(tooltipBubble.implicitHeight)
|
||||
|
||||
anchor {
|
||||
id: tooltipAnchor
|
||||
|
||||
Reference in new issue
Block a user