Question
Problem with TextArea and StyleSheet
Hi,
I've got a following problem - I have a TextArea element, that loads the text from XML file. Furthermore the elements reads css settings to format the text. Everything seems to be ok, but if I reload text in textarea the css-formatting fails, and I've already tried to do everything to avoid this, but whatever I do, the formatting breaks.
As you see I have event listener for list component - if I click on list item the text should be loaded into textarea component (textarea1) and be formatted according to setStyle. But it only happens once, and second time the text is loaded but not formatted (althought in the first moment it appears to be formatted but then the formatting get broken).
I've got a following problem - I have a TextArea element, that loads the text from XML file. Furthermore the elements reads css settings to format the text. Everything seems to be ok, but if I reload text in textarea the css-formatting fails, and I've already tried to do everything to avoid this, but whatever I do, the formatting breaks.
As you see I have event listener for list component - if I click on list item the text should be loaded into textarea component (textarea1) and be formatted according to setStyle. But it only happens once, and second time the text is loaded but not formatted (althought in the first moment it appears to be formatted but then the formatting get broken).