GWT : How to apply a "scroll !important" on RichTextArea

170 Views Asked by At

In GWT 2.7, I want my scroll bar is visible all the time on my RichTextArea, even when empty.

Usually, on my FlowPanel I can simply apply a

    overflow: scroll !important;

But on a RichTextArea, it does not work.

Thank you for your help,

1

There are 1 best solutions below

2
On BEST ANSWER

Please use this :

RichTextArea rtArea = new RichTextArea();                 
rtArea.getElement().getStyle().setOverflow(Overflow.SCROLL);                      

You can also set height and width as per your choice.