From ffa556c50d960335e414b063df501d442c36e070 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Thu, 12 Nov 2020 12:33:55 +0100 Subject: [PATCH] AdwaitaPopOver: better sizing and position --- app/simple/AdwaitaPopOver.qml | 4 ++-- app/views/ImageDetails.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/simple/AdwaitaPopOver.qml b/app/simple/AdwaitaPopOver.qml index 2e461e40..c5db977a 100644 --- a/app/simple/AdwaitaPopOver.qml +++ b/app/simple/AdwaitaPopOver.qml @@ -71,7 +71,7 @@ FocusScope { radius: units.smallSpacing Rectangle { z: -1 - y: -units.largeSpacing - 1 + y: -units.smallSpacing - 1 antialiasing: true border { width: 1 @@ -85,7 +85,7 @@ FocusScope { } Rectangle { color: palette.window - y: -units.largeSpacing + 1 + y: -units.smallSpacing + 1 anchors.horizontalCenter: parent.horizontalCenter width: units.gridUnit height: units.gridUnit diff --git a/app/views/ImageDetails.qml b/app/views/ImageDetails.qml index 23e66c40..b66a42c0 100644 --- a/app/views/ImageDetails.qml +++ b/app/views/ImageDetails.qml @@ -246,7 +246,7 @@ Item { anchors { horizontalCenter: parent.horizontalCenter top: parent.bottom - topMargin: units.largeSpacing + opacity * Math.round(units.gridUnit * 1.5) + topMargin: units.smallSpacing + opacity * units.gridUnit } onOpenChanged: { @@ -368,7 +368,7 @@ Item { anchors { horizontalCenter: parent.horizontalCenter top: parent.bottom - topMargin: units.largeSpacing + opacity * Math.round(units.gridUnit * 1.5) + topMargin: units.smallSpacing + opacity * units.gridUnit } onOpenChanged: {