+1
Résolu
What's the best way to do a flexible height text element?
I'm pulling data from a datasource and displaying data in a pager. All of the datasource elements are user-provided (from a web app) and vary widely between a short sentence and a couple paragraphs. Ideally, my text element would expand to hold the text with no extra space, but not cutting off any of the text. What's the best way to accomplish this?
0
icahill (Administrator) il y a 12 ans
try size="fit" this will resize the font to fit in the space allotted for the text container.
0
thillsman il y a 12 ans
Can I do anything that's the exact opposite of that? Same size font, but resizes text container? (Probably wishful thinking, but I'm just throwing it out there.)
0
icahill (Administrator) il y a 12 ans
height="fit" will resize the text container and not the font size of the text.
0
thillsman il y a 12 ans
Well, that's just magical. How did I not know that this exists/how to properly use it? This changes everything! :) Thanks, Ian!
0
icahill (Administrator) il y a 12 ans
https://studio.rarewire.com/wordpress... :)
0
thillsman il y a 12 ans
I know, I know... :) I think I confused it with size='fit'. It won't happen again. :)
Service d'assistance aux clients par UserEcho