From a96c948120c4b7f6f7a434b4ebe57ea5825a27a2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 5 Nov 2023 14:42:34 -0800 Subject: [PATCH] mobileshell: Remove explicit check for navigationPanelEnabled when determining homescreen margins Gesture mode now removes the plasmoid entirely, so this check is unnecessary --- components/mobileshell/qml/homescreen/HomeScreen.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/mobileshell/qml/homescreen/HomeScreen.qml b/components/mobileshell/qml/homescreen/HomeScreen.qml index adc5863e..b117b9f7 100644 --- a/components/mobileshell/qml/homescreen/HomeScreen.qml +++ b/components/mobileshell/qml/homescreen/HomeScreen.qml @@ -61,8 +61,7 @@ Item { function evaluateMargins() { topMargin = plasmoidItem.availableScreenRect.y - // add a specific check for the nav panel for now, since the gesture mode still technically has height - bottomMargin = ShellSettings.Settings.navigationPanelEnabled ? root.height - (plasmoidItem.availableScreenRect.y + plasmoidItem.availableScreenRect.height) : 0; + bottomMargin = root.height - (plasmoidItem.availableScreenRect.y + plasmoidItem.availableScreenRect.height) leftMargin = plasmoidItem.availableScreenRect.x rightMargin = root.width - (plasmoidItem.availableScreenRect.x + plasmoidItem.availableScreenRect.width) }