mirror of
https://github.com/RustyRaptor/plasma-keyboard.git
synced 2026-12-03 15:55:19 -07:00
virtualkeyboard/components: simplify Keyboard height calculation
Shorter phrasing, same semantics.
This commit is contained in:
1 parent
a544c4bfe3
commit
030ce04ccc
1 file changed
+1
-1
@@ -37,7 +37,7 @@ Item {
|
||||
|
||||
// Always have the keyboard panel be 30% of the screen height, or 150px, whichever is larger
|
||||
readonly property real __baseKeyboardInputAreaHeight: Math.max(Screen.height * 0.3, 150)
|
||||
readonly property real __keyboardInputAreaHeight: __baseKeyboardInputAreaHeight * ((layoutLoader.item && layoutLoader.item.panelHeightFactor !== undefined) ? layoutLoader.item.panelHeightFactor : 1)
|
||||
readonly property real __keyboardInputAreaHeight: __baseKeyboardInputAreaHeight * (layoutLoader.item?.panelHeightFactor ?? 1)
|
||||
readonly property real __contentHeight: __keyboardInputAreaHeight + (candidateStrip.visible ? candidateStrip.implicitHeight : 0)
|
||||
readonly property real __horizontalPadding: leftPadding + rightPadding
|
||||
readonly property real __verticalPadding: topPadding + bottomPadding
|
||||
|
||||
Reference in new issue
Block a user