Also use a themeable distance for pop-ups, not just for sticky components

This commit is contained in:
Ghostkeeper 2021-09-10 12:15:18 +02:00
parent 25e2828ed0
commit daac6faaba
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A
2 changed files with 3 additions and 2 deletions

View File

@ -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!

View File

@ -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:
{