Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

expand to fit to smaller size - "collapse to fit"

Avatar

Not applicable
I use expand to fit to let a field grow with the text when I leave it. In my form design the fields have an initial height of 3 lines for instance. Now I also want that the field is getting smaller when not so much text is in when I leave it. What I need something like "collapse to fit".



Is there a chance to do that by scripting on the exit-event?
1 Reply

Avatar

Level 10
There is no collapse to fit ....I would suggest only leaving one line and use expand to fit (to handle more than one line).