Antoine Gervais
Antoine Gervais

Reputation: 381

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,

Upvotes: 0

Views: 161

Answers (1)

Manish Prajapati
Manish Prajapati

Reputation: 392

Please use this :

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

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

Upvotes: 1

Related Questions