mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-08 03:39:02 +08: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
616bf479e5
commit
61fdd5dc72
@ -65,7 +65,7 @@ ListView
|
||||
|
||||
delegate: MouseArea
|
||||
{
|
||||
width: parent.width
|
||||
width: parent ? parent.width : 0
|
||||
height: childrenRect.height
|
||||
|
||||
onClicked:
|
||||
|
Loading…
x
Reference in New Issue
Block a user