Search code examples
gwtrichtextarea

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


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,


Solution

  • Please use this :

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

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