Skip to content

Commit ffa556c

Browse files
committed
AdwaitaPopOver: better sizing and position
1 parent e0508ac commit ffa556c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/simple/AdwaitaPopOver.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ FocusScope {
7171
radius: units.smallSpacing
7272
Rectangle {
7373
z: -1
74-
y: -units.largeSpacing - 1
74+
y: -units.smallSpacing - 1
7575
antialiasing: true
7676
border {
7777
width: 1
@@ -85,7 +85,7 @@ FocusScope {
8585
}
8686
Rectangle {
8787
color: palette.window
88-
y: -units.largeSpacing + 1
88+
y: -units.smallSpacing + 1
8989
anchors.horizontalCenter: parent.horizontalCenter
9090
width: units.gridUnit
9191
height: units.gridUnit

app/views/ImageDetails.qml

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Item {
246246
anchors {
247247
horizontalCenter: parent.horizontalCenter
248248
top: parent.bottom
249-
topMargin: units.largeSpacing + opacity * Math.round(units.gridUnit * 1.5)
249+
topMargin: units.smallSpacing + opacity * units.gridUnit
250250
}
251251

252252
onOpenChanged: {
@@ -368,7 +368,7 @@ Item {
368368
anchors {
369369
horizontalCenter: parent.horizontalCenter
370370
top: parent.bottom
371-
topMargin: units.largeSpacing + opacity * Math.round(units.gridUnit * 1.5)
371+
topMargin: units.smallSpacing + opacity * units.gridUnit
372372
}
373373

374374
onOpenChanged: {

0 commit comments

Comments
 (0)