mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 14:43:09 +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() {
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue