Skip to content

Commit

Permalink
Merge pull request #26 from delcake/patch-1
Browse files Browse the repository at this point in the history
Correct placement for vertical screen layouts
  • Loading branch information
SnoutBug authored Apr 27, 2022
2 parents bb90f17 + 915216d commit afeb464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contents/ui/MenuRepresentation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ PlasmaCore.Dialog {
offset = (125 * PlasmaCore.Units.devicePixelRatio) / 2 + parent.height * 0.125
}
}
y = parent.height + panelSvg.margins.bottom + offset;
y = screen.y + parent.height + panelSvg.margins.bottom + offset;
} else {
if (plasmoid.configuration.offsetY > 0) {
offset = plasmoid.configuration.offsetY
}
y = screen.height - parent.height - height - panelSvg.margins.top - offset;
y = screen.y + screen.height - parent.height - height - panelSvg.margins.top - offset;
}
} else {
y = vertMidPoint - height / 2
Expand Down

0 comments on commit afeb464

Please sign in to comment.