virtualkeyboard/components: simplify Keyboard height calculation

Shorter phrasing, same semantics.
This commit is contained in:
Jakob Petsovits committed 2026-10-23 11:56:42 -04:00
1 parent a544c4bfe3
commit 030ce04ccc
1 file changed
+1 -1
+1 -1
View File
@@ -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