mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue