mobileshell: Remove explicit check for navigationPanelEnabled when determining homescreen margins

Gesture mode now removes the plasmoid entirely, so this check is unnecessary
This commit is contained in:
Devin Lin 2023-11-05 14:42:34 -08:00
parent 173b19a23f
commit a96c948120

View file

@ -61,8 +61,7 @@ Item {
function evaluateMargins() { function evaluateMargins() {
topMargin = plasmoidItem.availableScreenRect.y topMargin = plasmoidItem.availableScreenRect.y
// add a specific check for the nav panel for now, since the gesture mode still technically has height bottomMargin = root.height - (plasmoidItem.availableScreenRect.y + plasmoidItem.availableScreenRect.height)
bottomMargin = ShellSettings.Settings.navigationPanelEnabled ? root.height - (plasmoidItem.availableScreenRect.y + plasmoidItem.availableScreenRect.height) : 0;
leftMargin = plasmoidItem.availableScreenRect.x leftMargin = plasmoidItem.availableScreenRect.x
rightMargin = root.width - (plasmoidItem.availableScreenRect.x + plasmoidItem.availableScreenRect.width) rightMargin = root.width - (plasmoidItem.availableScreenRect.x + plasmoidItem.availableScreenRect.width)
} }