fix: fix ChatImage not opening in the popup
This commit is contained in:
parent
95fcee2d00
commit
dae7f9cd44
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue