diff --git a/desktoppackage/contents/views/Panel.qml b/desktoppackage/contents/views/Panel.qml --- a/desktoppackage/contents/views/Panel.qml +++ b/desktoppackage/contents/views/Panel.qml @@ -30,6 +30,7 @@ enabledBorders: panel.enabledBorders property Item containment + property Item panelClient readonly property bool verticalPanel: containment && containment.formFactor === PlasmaCore.Types.Vertical @@ -70,6 +71,10 @@ containment.anchors.fill = containmentParent; containment.locationChanged.connect(adjustPrefix); adjustPrefix(); + + if (containment.children[0]) { + panelClient = containment.children[0]; + } } Binding { @@ -101,6 +106,19 @@ } } + Binding { + target: panel + property: "thickness" + when: panelClient && panelClient.thickness!==undefined + value: { + if (!panelClient || !panelClient.thickness) { + return; + } + + return panelClient.thickness; + } + } + Item { id: containmentParent anchors {