mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
homescreen: Fix lack of margin for taskpanel on landscape in appdrawer
This commit is contained in:
parent
4057122fb0
commit
97e1e4d53c
1 changed files with 10 additions and 6 deletions
|
|
@ -116,12 +116,14 @@ Item {
|
||||||
HomeScreenComponents.ListViewAppDrawer {
|
HomeScreenComponents.ListViewAppDrawer {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
topPadding: plasmoid.availableScreenRect.y
|
topPadding: plasmoid.availableScreenRect.y
|
||||||
|
|
||||||
|
// pad for navbar
|
||||||
|
rightPadding: MobileShell.TaskPanelControls.isPortrait ? 0 : MobileShell.TaskPanelControls.panelWidth
|
||||||
bottomPadding: plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
bottomPadding: plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
||||||
|
|
||||||
closedPositionOffset: favoriteStrip.height
|
closedPositionOffset: favoriteStrip.height
|
||||||
|
|
||||||
headerItem: Loader {
|
headerItem: Loader { sourceComponent: headerComponent }
|
||||||
sourceComponent: headerComponent
|
|
||||||
}
|
|
||||||
headerHeight: root.headerHeight
|
headerHeight: root.headerHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -131,12 +133,14 @@ Item {
|
||||||
HomeScreenComponents.GridViewAppDrawer {
|
HomeScreenComponents.GridViewAppDrawer {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
topPadding: plasmoid.availableScreenRect.y
|
topPadding: plasmoid.availableScreenRect.y
|
||||||
|
|
||||||
|
// pad for navbar
|
||||||
|
rightPadding: MobileShell.TaskPanelControls.isPortrait ? 0 : MobileShell.TaskPanelControls.panelWidth
|
||||||
bottomPadding: plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
bottomPadding: plasmoid.screenGeometry.height - plasmoid.availableScreenRect.height - plasmoid.availableScreenRect.y
|
||||||
|
|
||||||
closedPositionOffset: favoriteStrip.height
|
closedPositionOffset: favoriteStrip.height
|
||||||
|
|
||||||
headerItem: Loader {
|
headerItem: Loader { sourceComponent: headerComponent }
|
||||||
sourceComponent: headerComponent
|
|
||||||
}
|
|
||||||
headerHeight: root.headerHeight
|
headerHeight: root.headerHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue