mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 18:39:23 +00:00
fix(Chat/Message): use other workaround to force the right message size
This commit is contained in:
parent
3131fa1848
commit
1d681621e7
3 changed files with 8 additions and 5 deletions
|
|
@ -19,6 +19,10 @@ RowLayout {
|
|||
id: message
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
// Not a style. Workaround to avoid a 0 width.
|
||||
Layout.minimumWidth: 0
|
||||
|
||||
backgroundColor: '#BFBFBF'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,4 @@ Item {
|
|||
|
||||
anchors.left: rectangle.right
|
||||
}
|
||||
|
||||
// In some case the initial `implicitHeight`
|
||||
// state is incorrect. This line is a workaround that forces
|
||||
// the `height` attribute.
|
||||
Component.onCompleted: height = text.contentHeight + text.padding * 2
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ RowLayout {
|
|||
id: message
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
// Not a style. Workaround to avoid a 0 width.
|
||||
Layout.minimumWidth: 20
|
||||
|
||||
backgroundColor: '#E4E4E4'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue