Commit 1d681621 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent 3131fa18
...@@ -19,6 +19,10 @@ RowLayout { ...@@ -19,6 +19,10 @@ RowLayout {
id: message id: message
Layout.fillWidth: true Layout.fillWidth: true
// Not a style. Workaround to avoid a 0 width.
Layout.minimumWidth: 0
backgroundColor: '#BFBFBF' backgroundColor: '#BFBFBF'
} }
} }
...@@ -40,9 +40,4 @@ Item { ...@@ -40,9 +40,4 @@ Item {
anchors.left: rectangle.right 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 { ...@@ -12,6 +12,10 @@ RowLayout {
id: message id: message
Layout.fillWidth: true Layout.fillWidth: true
// Not a style. Workaround to avoid a 0 width.
Layout.minimumWidth: 20
backgroundColor: '#E4E4E4' backgroundColor: '#E4E4E4'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment