We’re building an experience that populates a lot of content from a spreadsheet. One of those pieces of content is a long form biography text. The text field sits inside of a vertical scroll container. Problem is we have to set the height of the text box large enough to accommodate the longest bio, but when you load a short biography the vertical scroll ends up being excessively long. Ideally, we would like to use scripting to dynamically set text field height and vertical position based on character count. I’ve been experimenting, but would love to hear from someone who’s either done this before or has a good idea as to the best way to go about it. Thanks!
The thread @megan referenced is indeed the best answer to your question.
Another answer will be a future “soon to be released” that will make your life (and mine!) way easier when it comes to handle variable length texts. Stay tuned
Yes: it’s the best solution to have a dynamic text field size, depending on text length
No: There’s now a better solution for a fixed text field size, to adapt the text font size and automatically add scroll bars for example. See this article section
I was trying to find a way to positioning items vertically where items have different(and could be dynamic) height and group it to use it in a scroll as a layout collection.
Tried to use asset grid, but all items have the same dimensions, is there a way to do it without a lot of workarounds?