Forum Discussion
Automatically resize text box to fit text variables?
Hi Vic!
Thanks so much for detailing your course set up. Are you able to share a screenshot or a of copy of your file for our Support Engineers to test? I tested the Autofit option with sample text, and it doesn't appear to result in large margins. Is this something that may work for your designer? If you select expand height, the text box will adjust to fit the text.
Please let me know if this helps!
- Vic5 months agoCommunity Member
Hi KellyAuner This does not work if the text is a variable. It makes the height the size of the initial variable value and then makes the variable text smaller to fit if the variable is longer than the initial value. If the variable is longer than the initial value it gives it big margins instead of adjusting the height.
- StevenBenassi5 months agoStaff
Hi Vic!
Thanks for clarifying!
That's correct. With Variable Text, the “Expand height” auto-fit option behaves differently than with static text. Currently, Storyline does not support dynamically resizing a Text Box to match the changing length of a Variable while keeping margins, outline, and shadows consistent. I do understand having this level of functionality could improve your authoring experience. I've shared this feedback with our product team!
We have a lot of Javascript gurus here in the community. I'm hopeful they can share custom design solutions that worked for them!