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


#1

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.


#2

Still needing some help with this issue :frowning:


#3

Anyone have an idea on how to solve this?


#4

Same issue for me :wink:

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