PDA

View Full Version : set scrolling text like in overlay example dynamically



willi
30 Sep 2010, 10:11 AM
I have a modal panel like in the overlay example and need to change the text dynamically. In the example the scrolling text is loaded with 'contentEl'. But that doesn't suit for me, I have my texts in a json file. And the only way I found to add my texts to the panel is via 'panel.add'. But this doesn't give me a scrolling textfield like in the example. And after adding a small text the width of the following texts seems to be bound to the prior width!? I'm missing something like 'setText' or 'setHTML' here. I can do that while configuring the panel, ok. But how do I change a text in a panel that always has the same width like the panel and starts scrolling when the text gets to long?

Thanks in advance!

evant
30 Sep 2010, 3:23 PM
Just set the scroll to horizontal, when it needs to actually scroll it will.