mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Restore check for parent before getting its width
Delegates that are outside of the viewport may have no parent any more. Don't attempt to find their parents' width. Contributes to issue CURA-8565.
This commit is contained in:
parent
0069182c6b
commit
76e43759c7
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ ListView
|
|||
|
||||
delegate: MouseArea
|
||||
{
|
||||
width: parent.width
|
||||
width: parent ? parent.width : 0
|
||||
height: childrenRect.height
|
||||
|
||||
onClicked:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue