homescreen: Fix lack of margin for taskpanel on landscape in appdrawer

This commit is contained in:
Devin Lin 2021-12-24 23:20:32 -05:00
parent 4057122fb0
commit 97e1e4d53c

View file

@ -116,12 +116,14 @@ Item {
HomeScreenComponents.ListViewAppDrawer {
anchors.fill: parent
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
closedPositionOffset: favoriteStrip.height
headerItem: Loader {
sourceComponent: headerComponent
}
headerItem: Loader { sourceComponent: headerComponent }
headerHeight: root.headerHeight
}
}
@ -131,12 +133,14 @@ Item {
HomeScreenComponents.GridViewAppDrawer {
anchors.fill: parent
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
closedPositionOffset: favoriteStrip.height
headerItem: Loader {
sourceComponent: headerComponent
}
headerItem: Loader { sourceComponent: headerComponent }
headerHeight: root.headerHeight
}
}