mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Fix QML warning about not having parents
It seems that the ListView doesn't always set the parent element correctly if it's not yet in view. This is a workaround that seems to work fine to remove the QML warnings about parent not being defined. Contributes to issue CURA-8561.
This commit is contained in:
parent
2ce31d0e71
commit
abe8347523
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ Rectangle
|
|||
{
|
||||
property var packageData
|
||||
|
||||
width: parent.width
|
||||
width: parent ? parent.width : 0
|
||||
height: childrenRect.height + UM.Theme.getSize("default_margin").height * 2
|
||||
|
||||
color: UM.Theme.getColor("main_background")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue