Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/SideBarSection.qml
Show All 24 Lines | |||||
25 | DropArea { | 25 | DropArea { | ||
26 | id: root | 26 | id: root | ||
27 | 27 | | |||
28 | width: units.iconSizes.medium | 28 | width: units.iconSizes.medium | ||
29 | height: contentHeight | 29 | height: contentHeight | ||
30 | 30 | | |||
31 | anchors.horizontalCenter: parent.horizontalCenter | 31 | anchors.horizontalCenter: parent.horizontalCenter | ||
32 | 32 | | |||
33 | property int contentHeight: (model.count * units.iconSizes.medium) + ((model.count - 1) * flow.spacing) | 33 | property int contentHeight: model ? (model.count * units.iconSizes.medium) + ((model.count - 1) * flow.spacing) : 0 | ||
34 | 34 | | |||
35 | property alias model: repeater.model | 35 | property alias model: repeater.model | ||
36 | property alias usesPlasmaTheme: repeater.usesPlasmaTheme | 36 | property alias usesPlasmaTheme: repeater.usesPlasmaTheme | ||
37 | 37 | | |||
38 | onDragMove: { | 38 | onDragMove: { | ||
39 | if (flow.animating) { | 39 | if (flow.animating) { | ||
40 | return; | 40 | return; | ||
41 | } | 41 | } | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |