PDA

View Full Version : Bind a textareafield long value to a displayfield: text exceeds the form limits



josei
8 Feb 2015, 7:15 AM
Hi!

I'm trying to bind the textareafield long value (text) for a displayField.
However, in displayField the text exceeds the form limits, not changing to next line.
I tried to format text with configs and css, but without success.

https://fiddle.sencha.com/#fiddle/hsf

I would appreciate suggestions to address this issue.

Thanks in advance.

joel.watson
10 Feb 2015, 1:09 PM
Hi!

I'm trying to bind the textareafield long value (text) for a displayField.
However, in displayField the text exceeds the form limits, not changing to next line.
I tried to format text with configs and css, but without success.

https://fiddle.sencha.com/#fiddle/hsf

I would appreciate suggestions to address this issue.

Thanks in advance.

Hi josei--

It looks like you might have found a solution for this? In the fiddle, it appears that the displayField is using multiple lines. If not, let me know.

Thanks!
Joel

josei
10 Feb 2015, 2:15 PM
Hi!
Thanks for replying.

If we directly paste one Lorem Ipsum formatted in textfiel or textareafield, works correctly.


However, if we write directly into these fields, does not work (and this is very important on my app).

Any idea to solve this issue?

Thanks Joel.

joel.watson
10 Feb 2015, 2:34 PM
Hi josei--

When I type directly into the larger textarea, it seems to work as expected. The textfield above it overflows, but when I apply the same tweaks to it that are on the textarea, it seems to work as well.

Can you elaborate more on how to reproduce it?

Thanks
Joel


51712

josei
11 Feb 2015, 3:32 AM
Thanks Joel.

You're right. Is working well.

My mistake was that, to test, I inserted a long line of characters with no spaces (for example, 30 times the letter 'h'), which generated the strange behavior.
If you enter a text, with several words, with spaces between words, works fine.


Thanks again.