fix: fix ChatImage not opening in the popup

This commit is contained in:
Jonathan Rainville 2020-11-27 10:38:58 -05:00
parent 95fcee2d00
commit dae7f9cd44
2 changed files with 6 additions and 0 deletions

View File

@ -62,11 +62,14 @@ Item {
anchors.left: chatText.left
anchors.leftMargin: 8
anchors.top: chatReply.bottom
z: 51
sourceComponent: Component {
ChatImage {
imageSource: image
imageWidth: 200
onClicked: chatTextItem.clickMessage(false, false, true, image)
}
}
}

View File

@ -135,16 +135,19 @@ Item {
anchors.topMargin: Style.current.smallPadding
anchors.left: parent.left
anchors.leftMargin: chatBox.chatHorizontalPadding
z: 51
sourceComponent: Component {
Item {
width: chatImageComponent.width + 2 * chatBox.chatHorizontalPadding
height: chatImageComponent.height
ChatImage {
id: chatImageComponent
imageSource: image
imageWidth: 250
isCurrentUser: messageItem.isCurrentUser
onClicked: chatTextItem.clickMessage(false, false, true, image)
}
}
}