summary refs log tree commit diff
path: root/resources/qml/MessageInput.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-19 03:31:00 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-19 03:31:00 +0100
commit15750872de52c4b99de04b2e196c7fd2d7705a51 (patch)
treede4a6637a076b60e16c6e270d40b8b6af91dddf6 /resources/qml/MessageInput.qml
parentFix qml warnings (diff)
downloadnheko-15750872de52c4b99de04b2e196c7fd2d7705a51.tar.xz
Fix completer opening in wrong place after warning fix
Diffstat (limited to 'resources/qml/MessageInput.qml')
-rw-r--r--resources/qml/MessageInput.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml
index 581416e5..9e9e5b7a 100644
--- a/resources/qml/MessageInput.qml
+++ b/resources/qml/MessageInput.qml
@@ -242,8 +242,8 @@ Rectangle {
                 Completer {
                     id: popup
 
-                    x: textArea.positionToRectangle(textArea.completerTriggeredAt > 0 ? text.completerTriggeredAt : 0).x
-                    y: textArea.positionToRectangle(textArea.completerTriggeredAt > 0 ? text.completerTriggeredAt : 0).y - height
+                    x: textArea.completerTriggeredAt >= 0 ? textArea.positionToRectangle(textArea.completerTriggeredAt).x : 0
+                    y: textArea.completerTriggeredAt >= 0 ? textArea.positionToRectangle(textArea.completerTriggeredAt).y - height : 0
                 }
 
                 Connections {