mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +00:00
taskpanel: Fix top panel offset in landscape
This commit is contained in:
parent
629b10486a
commit
0235868fa1
1 changed files with 4 additions and 4 deletions
|
|
@ -78,10 +78,10 @@ PlasmaCore.ColorScope {
|
||||||
if (!Window.window)
|
if (!Window.window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// ensure that Plasma sets the correct offset
|
// set offset from top panel
|
||||||
//Window.window.offset = Qt.binding(() => {
|
Window.window.offset = Qt.binding(() => {
|
||||||
//return (plasmoid.formFactor !== PlasmaCore.Types.Vertical) ? MobileShell.TaskPanelControls.panelHeight : MobileShell.TaskPanelControls.panelWidth
|
return (root.state === "landscape") ? MobileShell.TopPanelControls.panelHeight : 0
|
||||||
//});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// bottom navigation panel component
|
// bottom navigation panel component
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue