Skip to content

Commit

Permalink
Merge pull request #94 from HelloVolla/dev
Browse files Browse the repository at this point in the history
Fix for partly hidden message field
  • Loading branch information
wurzer authored Sep 11, 2022
2 parents 1309794 + 1f9ddc9 commit 97fdbd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Conversation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ Page {

onKeyboardRectangleChanged: {
console.log("Conversation | Keyboard rectangle: " + Qt.inputMethod.keyboardRectangle)
console.log("Conversation | Desktop available height: " + Screen.desktopAvailableHeight)
console.log("Conversation | Pixel Ratio: " + Screen.devicePixelRatio)

var delta = Qt.inputMethod.keyboardRectangle.height === 0
? 0 : mainWindow.visibility === 5 ? conversationPage.navBarHeight + 45 : conversationPage.navBarHeight // estimated navigation bar height
? 0 : mainWindow.visibility === 5 ? conversationPage.navBarHeight + Screen.desktopAvailableHeight / 16 : conversationPage.navBarHeight // estimated navigation bar height

listView.height = Screen.desktopAvailableHeight - Qt.inputMethod.keyboardRectangle.height / Screen.devicePixelRatio - delta
listView.positionViewAtEnd()
Expand Down
2 changes: 1 addition & 1 deletion android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<manifest package="com.volla.launcher" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.0.35" android:versionCode="235" android:installLocation="auto">
<manifest package="com.volla.launcher" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.0.37" android:versionCode="237" android:installLocation="auto">
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="29"/>

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Expand Down

0 comments on commit 97fdbd5

Please sign in to comment.