Commit e4cfec83 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen Committed by GitHub

Merge pull request #42 from eekkelund/master

[Keyboard] Move application upwards in case of input area is clicked and keyboard appeares
parents 3858cd52 4f8d9d1f
This diff is collapsed.
...@@ -22,7 +22,8 @@ Item { ...@@ -22,7 +22,8 @@ Item {
property bool isUiPortrait: header && header.appWindow.isUiPortrait property bool isUiPortrait: header && header.appWindow.isUiPortrait
property bool showBackButton: false property bool showBackButton: false
property int toolMeasure: parent.width/10
height: toolMeasure
Rectangle { Rectangle {
id: backButton id: backButton
width: opacity ? size.dp(60) : 0 width: opacity ? size.dp(60) : 0
...@@ -84,13 +85,12 @@ Item { ...@@ -84,13 +85,12 @@ Item {
anchors.rightMargin: size.dp(20) anchors.rightMargin: size.dp(20)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: tools ? (size.dp(50) * Math.min(maxNumberOfToolButtons, tools.length)) : 0 width: tools ? (size.dp(50) * Math.min(maxNumberOfToolButtons, tools.length)) : 0
property int maxNumberOfToolButtons: 3 property int maxNumberOfToolButtons: 3
RowLayout { RowLayout {
id: toolsRow id: toolsRow
anchors.centerIn: parent anchors.centerIn: parent
height: toolMeasure
function assignRotationBindings() { function assignRotationBindings() {
for (var i=0; i<children.length; ++i) { for (var i=0; i<children.length; ++i) {
children[i].rotation = Qt.binding(function() { return isUiPortrait ? 0 : 90 }) children[i].rotation = Qt.binding(function() { return isUiPortrait ? 0 : 90 })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment