0

I am creating a flextable and adding cells in it dynamically. Flextable is inside scrollpanel but scrollbars never come vertically. They always come horizontally/

<g:ScrollPanel ui:field='toppanel'>

            </g:ScrollPanel>

Flextable is added in this Scrollpanel dynamically as toppanel.add(stutable);

JDT
  • 109
  • 1
  • 2
  • 10

2 Answers2

1

I think you must set the height of your flextable.

  • I have tried setting it to 20px just to check this but no success – JDT Sep 13 '13 at 15:54
  • 1
    What I did was also set the width of scrollpanel but not to 100%, then it worked. The code I added is toppanel.setHeight("200px"); toppanel.setWidth("99.9999%"); stutable.setWidth("100%"); – JDT Sep 13 '13 at 16:26
0

If you are using RootLayoutPanel then you need to mention scroll panel height in px or em. Don't mention it in percentages. For more info refer the following questions and answers.

GWT ScrollPanel without fixed units, size issue

GWT ScrollPanel not showing the complete content

GWT: DataGrid - set height 100% not rendering properly

gwt ScrollPanel in TabPanel: no vertical scrollbar

Community
  • 1
  • 1
Abhijith Nagaraja
  • 3,370
  • 6
  • 27
  • 55