fix(Chat/Message): use other workaround to force the right message size

This commit is contained in:
Ronan Abhamon 2016-10-18 16:25:12 +02:00
parent 3131fa1848
commit 1d681621e7
3 changed files with 8 additions and 5 deletions

View file

@ -19,6 +19,10 @@ RowLayout {
id: message
Layout.fillWidth: true
// Not a style. Workaround to avoid a 0 width.
Layout.minimumWidth: 0
backgroundColor: '#BFBFBF'
}
}

View file

@ -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
}

View file

@ -12,6 +12,10 @@ RowLayout {
id: message
Layout.fillWidth: true
// Not a style. Workaround to avoid a 0 width.
Layout.minimumWidth: 20
backgroundColor: '#E4E4E4'
}