Monday, July 9, 2018

TextArea background color issue

Hi All ,

Greetings!

I  have creates a TextArea element and  added it to HorizontalPanel.
Now, I want to highlight background of TextArea with some color.

I used below lines ,
 

tfDesc.getElement().getStyle().setBackgroundColor("#fdfdbb");



tfDesc.setStyle("background-color:#fdfdbb");



The problem is whenever some text is populated in the Text area , the background color behind the text goes off , will  be white color but  the other lines(where text is not present) stay in color in assigned.



Please help!


Thanks.



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment