How do I use collection-repeat with this structure? (Chat view)

Hi guys. I have a Chat view in my app that each chat message can have different heights. But as is known, collection-repeat must have a height or a height function to know the elements height. But since the text is variable and the width of the device is also variable (Different height may have different word breaks that can change the elements height), how can I calculate the height of that element?

His a print of the screen I’m talking about.

1 Like

Still needing some help with this issue :frowning:

1 Like

Anyone have an idea on how to solve this?

1 Like

Same issue for me :wink:

Currently I limit the number of characters to fit a static size… bad