Skip to content

Commit

Permalink
AdwaitaPopOver: better sizing and position
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Nov 12, 2020
1 parent e0508ac commit ffa556c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/simple/AdwaitaPopOver.qml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ FocusScope {
radius: units.smallSpacing
Rectangle {
z: -1
y: -units.largeSpacing - 1
y: -units.smallSpacing - 1
antialiasing: true
border {
width: 1
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/views/ImageDetails.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit ffa556c

Please sign in to comment.