Remove unnecessary setting height to 0 when invisible

Turns out that it doesn't count for the childrenRect.height anyway when the item is invisible.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-05 14:10:51 +01:00
parent 024bf409c9
commit 5ba8820f18
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import Cura 1.0 as Cura
Item Item
{ {
width: parent.width width: parent.width
height: visible ? childrenRect.height : 0 height: childrenRect.height
Label Label
{ {

View file

@ -17,7 +17,7 @@ Item
} }
width: parent.width width: parent.width
height: visible ? childrenRect.height : 0 height: childrenRect.height
Label Label
{ {