diff --git a/declarativeimports/plasmacomponents/qml/ListItem.qml b/declarativeimports/plasmacomponents/qml/ListItem.qml index cb2073f05..0ea5ffdc5 100644 --- a/declarativeimports/plasmacomponents/qml/ListItem.qml +++ b/declarativeimports/plasmacomponents/qml/ListItem.qml @@ -69,7 +69,7 @@ Item { //is this to be used as section delegate? property bool sectionDelegate: false - width: parent.width + width: parent ? parent.width : childrenRect.width height: paddingItem.childrenRect.height + background.margins.top + background.margins.bottom property int implicitHeight: paddingItem.childrenRect.height + background.margins.top + background.margins.bottom