Make sure panels are positioned in the right place on the first run

Addresses a problem where the bottom panel would be on top on first runs
sometimes.
This commit is contained in:
Aleix Pol 2021-09-13 17:08:18 +02:00 committed by Aleix Pol Gonzalez
parent 4bba6ac402
commit 7f79b373ea

View file

@ -5,8 +5,10 @@ for (var j = 0; j < desktopsArray.length; j++) {
desktopsArray[0].addWidget("org.kde.phone.krunner", 0, 0, screenGeometry(0).width, 20)
// keep this list in sync with shell/contents/updates/panelsfix.js
var panel = new Panel("org.kde.phone.panel");
panel.location = "top";
panel.addWidget("org.kde.plasma.notifications");
panel.addWidget("org.kde.plasma.mediacontroller");
panel.height = 1 * gridUnit;
var bottomPanel = new Panel("org.kde.phone.taskpanel")
bottomPanel.location = "bottom";