mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
lockscreen: don't make password bar go off the screen if keyboard reports height larger than screen height
This commit is contained in:
parent
76dca349eb
commit
19e3840a23
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ Rectangle {
|
||||||
if (passwordBar.isPinMode && !Qt.inputMethod.visible) {
|
if (passwordBar.isPinMode && !Qt.inputMethod.visible) {
|
||||||
return PlasmaCore.Units.gridUnit * 17;
|
return PlasmaCore.Units.gridUnit * 17;
|
||||||
} else {
|
} else {
|
||||||
return PlasmaCore.Units.smallSpacing * 2 + Qt.inputMethod.keyboardRectangle.height + passwordBar.implicitHeight;
|
return Math.min(root.height - passwordBar.implicitHeight, // don't make the password bar go off the screen
|
||||||
|
PlasmaCore.Units.smallSpacing * 2 + Qt.inputMethod.keyboardRectangle.height + passwordBar.implicitHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue