Inline Edit Fixes

- Make sure the connection to the room's chatBoxEditIdChanged signal is made so that the edit box gets filled.
- Make sure the minimum height and preferred width are available to the loader so they can be set and dynamically updated.

BUG: 465934
This commit is contained in:
James Graham
2023-02-20 18:24:00 +00:00
parent 6d9dca7da8
commit 2dd3197beb
2 changed files with 18 additions and 16 deletions

View File

@@ -26,9 +26,12 @@ TimelineContainer {
}
Loader {
Layout.fillWidth: true
Layout.minimumHeight: item ? item.minimumHeight : -1
Layout.preferredWidth: item ? item.preferredWidth : -1
visible: currentRoom.chatBoxEditId === model.eventId
active: visible
sourceComponent: MessageEditComponent {
room: currentRoom
messageId: model.eventId
}
}