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.left: chatText.left
anchors.leftMargin: 8 anchors.leftMargin: 8
anchors.top: chatReply.bottom anchors.top: chatReply.bottom
z: 51
sourceComponent: Component { sourceComponent: Component {
ChatImage { ChatImage {
imageSource: image imageSource: image
imageWidth: 200 imageWidth: 200
onClicked: chatTextItem.clickMessage(false, false, true, image)
} }
} }
} }

View File

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