Layout fixes.

Prevent 'height' based binding loops.

part of CURA-8561
This commit is contained in:
Remco Burema 2021-11-11 17:30:43 +01:00
parent 51de234082
commit c1f2da8820
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
2 changed files with 11 additions and 16 deletions

View file

@ -38,7 +38,7 @@ ToolTip
onAboutToHide: hide()
// If the text is not set, just set the height to 0 to prevent it from showing
height: text != "" ? label.contentHeight + 2 * UM.Theme.getSize("thin_margin").width: 0
height: label.contentHeight + 2 * UM.Theme.getSize("thin_margin").width
x:
{
@ -74,7 +74,7 @@ ToolTip
}
function show() {
opacity = 1
opacity = text != "" ? 1 : 0
}
function hide() {