mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Make keyboard's 'raisedHeight' to include 'mirror text' height
note: this is necessary becasue all the dialogs rely on 'raisedHeight', so without 'mirror text' they will use wrong keyboard geometry during calculations
This commit is contained in:
parent
3a428bc44f
commit
9ec10bbb7e
1 changed files with 7 additions and 5 deletions
|
@ -26,15 +26,17 @@ Rectangle {
|
|||
|
||||
readonly property int keyboardRowHeight: 50
|
||||
readonly property int keyboardWidth: 480
|
||||
readonly property int keyboardHeight: 200
|
||||
|
||||
readonly property int mirrorTextHeight: keyboardRowHeight
|
||||
|
||||
property bool password: false
|
||||
property alias mirroredText: mirrorText.text
|
||||
property bool showMirrorText: true
|
||||
readonly property int raisedHeight: 200
|
||||
|
||||
height: enabled && raised ? raisedHeight + (showMirrorText ? keyboardRowHeight : 0) : 0
|
||||
readonly property int raisedHeight: keyboardHeight + (showMirrorText ? keyboardRowHeight : 0)
|
||||
|
||||
height: enabled && raised ? raisedHeight : 0
|
||||
visible: enabled && raised
|
||||
|
||||
property bool shiftMode: false
|
||||
|
@ -158,7 +160,7 @@ Rectangle {
|
|||
id: keyboardRect
|
||||
y: showMirrorText ? mirrorTextHeight : 0
|
||||
width: keyboardWidth
|
||||
height: raisedHeight
|
||||
height: keyboardHeight
|
||||
color: "#252525"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.bottom: parent.bottom
|
||||
|
@ -167,7 +169,7 @@ Rectangle {
|
|||
Column {
|
||||
id: columnAlpha
|
||||
width: keyboardWidth
|
||||
height: raisedHeight
|
||||
height: keyboardHeight
|
||||
visible: !numeric
|
||||
|
||||
Row {
|
||||
|
@ -259,7 +261,7 @@ Rectangle {
|
|||
Column {
|
||||
id: columnNumeric
|
||||
width: keyboardWidth
|
||||
height: raisedHeight
|
||||
height: keyboardHeight
|
||||
visible: numeric
|
||||
|
||||
Row {
|
||||
|
|
Loading…
Reference in a new issue