From a020db2e0424a648ccb120167154ca8419a40035 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 14 May 2025 18:26:50 -0400 Subject: [PATCH] Give completion popup a minimum size when editing an existing message This was previously fixed to the size of the text area itself, which could be small. We also have a bug where the text area *itself* is like one character big, so this helps there too. The popup is also given a margin of 0 so it is always positioned within the bounds of the window. BUG: 503483 (cherry picked from commit 142312d87da46468626ce1648549c7434cda0ffa) --- src/timeline/ChatBarComponent.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/timeline/ChatBarComponent.qml b/src/timeline/ChatBarComponent.qml index f34f6482c..49fde1863 100644 --- a/src/timeline/ChatBarComponent.qml +++ b/src/timeline/ChatBarComponent.qml @@ -121,9 +121,11 @@ QQC2.TextArea { CompletionMenu { id: completionMenu + width: Math.max(350, root.width - 1) height: implicitHeight y: -height - 5 z: 10 + margins: 0 connection: root.room.connection chatDocumentHandler: documentHandler Behavior on height {