mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 22:33:08 +00:00
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:
parent
173b19a23f
commit
a96c948120
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue