From 97e1e4d53c501d3ce8ce3e9e685a0cb85d452cf0 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Fri, 24 Dec 2021 23:20:32 -0500 Subject: [PATCH] homescreen: Fix lack of margin for taskpanel on landscape in appdrawer --- .../package/contents/ui/HomeScreen.qml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/containments/homescreen/package/contents/ui/HomeScreen.qml b/containments/homescreen/package/contents/ui/HomeScreen.qml index a6946107..0ff33509 100644 --- a/containments/homescreen/package/contents/ui/HomeScreen.qml +++ b/containments/homescreen/package/contents/ui/HomeScreen.qml @@ -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 } }