@@ -1,5 +1,6 @@
11/*
22 * Copyright (C) 2015-2016 Canonical, Ltd.
3+ * Copyright (C) 2021 UBports Foundation
34 *
45 * This program is free software; you can redistribute it and/or modify
56 * it under the terms of the GNU General Public License as published by
@@ -27,7 +28,7 @@ FocusScope {
2728 property alias launcherOffset: coverPage.launcherOffset
2829 property alias currentIndex: loginList.currentIndex
2930 property alias delayMinutes: delayedLockscreen.delayMinutes
30− property alias backgroundTopMargin: coverPage.backgroundTopMargin
31+ property real panelHeight
3132 property url background
3233 property bool hasCustomBackground
3334 property bool locked
@@ -110,7 +111,6 @@ FocusScope {
110111 objectName: "lockscreenBackground"
111112 anchors {
112113 fill: parent
113− topMargin: root.backgroundTopMargin
114114 }
115115 source: root.background
116116 }
@@ -171,6 +171,7 @@ FocusScope {
171171 width: parent.width
172172 background: root.background
173173 hasCustomBackground: root.hasCustomBackground
174+ panelHeight: root.panelHeight
174175 draggable: !root.waiting
175176 onTease: root.tease()
176177 onClicked: hide()
@@ -188,7 +189,7 @@ FocusScope {
188189 Clock {
189190 anchors {
190191 top: parent.top
191− topMargin: units.gu(2)
192+ topMargin: units.gu(2) + panelHeight
192193 horizontalCenter: parent.horizontalCenter
193194 }
194195 }