Patrick Kwinten
Patrick Kwinten

Reputation: 2048

auto size textarea / xp:inputTextarea - onload

I have applied autosize (http://www.jacklmoore.com/autosize/) on a xp:inputTextarea but I notice this only works in edit mode and I have to update the content.

Is there a way to autosize the xp:inputTextarea in read mode?

Upvotes: 0

Views: 152

Answers (1)

stwissel
stwissel

Reputation: 20384

You might want to take a slightly approach: Hide the text area control in read mode and show the text inside a div. That way it will render to its full length whatever that might be. Users typically appreciate when you avoid double scroll bars when reading

Upvotes: 1

Related Questions