taskpanel: Fix top panel offset in landscape

This commit is contained in:
Devin Lin 2022-04-06 23:30:11 -04:00
parent 629b10486a
commit 0235868fa1

View file

@ -78,10 +78,10 @@ PlasmaCore.ColorScope {
if (!Window.window)
return;
// ensure that Plasma sets the correct offset
//Window.window.offset = Qt.binding(() => {
//return (plasmoid.formFactor !== PlasmaCore.Types.Vertical) ? MobileShell.TaskPanelControls.panelHeight : MobileShell.TaskPanelControls.panelWidth
//});
// set offset from top panel
Window.window.offset = Qt.binding(() => {
return (root.state === "landscape") ? MobileShell.TopPanelControls.panelHeight : 0
});
}
// bottom navigation panel component