From daac6faaba98c31e77bb593369ee0399e8805efc Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 10 Sep 2021 12:15:18 +0200 Subject: [PATCH] Also use a themeable distance for pop-ups, not just for sticky components --- resources/qml/ExpandableComponent.qml | 2 +- resources/qml/ExpandablePopup.qml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/qml/ExpandableComponent.qml b/resources/qml/ExpandableComponent.qml index c62b9f7660..694cfb9e2e 100644 --- a/resources/qml/ExpandableComponent.qml +++ b/resources/qml/ExpandableComponent.qml @@ -76,7 +76,7 @@ Item // On what side should the header corners be shown? 1 is down, 2 is left, 3 is up and 4 is right. property alias headerCornerSide: background.cornerSide - // Distance between the header and the content if the content is a pop-up. + // Distance between the header and the content. property int popupOffset: 2 * UM.Theme.getSize("default_lining").height // Prefix used for the dragged position preferences. Preferences not used if empty. Don't translate! diff --git a/resources/qml/ExpandablePopup.qml b/resources/qml/ExpandablePopup.qml index 3bcfdbb6f8..39f2ced8aa 100644 --- a/resources/qml/ExpandablePopup.qml +++ b/resources/qml/ExpandablePopup.qml @@ -75,7 +75,8 @@ Item // Change the contentItem close behaviour property alias contentClosePolicy : content.closePolicy - property int popupOffset: 2 + // Distance between the header and the content. + property int popupOffset: 2 * UM.Theme.getSize("default_lining").height onEnabledChanged: {