20 Aug 2012 3:47 PM #1
Unanswered: Scroll bar on FramedPanel
I have a UiBinder class that adds a few widgets to a gwt VerticalPanel. One of the widgets is a GXT FramedPanel which contains a Grid. I would like a scrollbar to appear on the Grid, because there are more items there than can be shown. With my current set-up, the scrollbar appears and works, but the bottom of the scrollbar is not visible. I have checked, and it is not hidden behind another panel. Any ideas?
<g:VerticalPanel height="100%"> <container:VerticalLayoutContainer> <my:Panel ... /> <gxt:FramedPanel bodyStyle="background-color:white;" headerVisible="false" pixelSize="1000, 300"> <grid:Grid ui:field="cnvGrid" /> </gxt:FramedPanel> <gxt:FramedPanel ... > ... </gxt:FramedPanel> </container:VerticalLayoutContainer> </g:VerticalPanel>
31 Aug 2012 1:42 PM #2
- Join Date
- Sep 2011
- Superior, CO
- Vote Rating
I suspect you're having sizing issues. I'm not familiar with how to do this in UiBinder, but:
- Grids, by default, have a zero size so if you're putting it into a container that doesn't size, it will size itself based on the data it contains - which is probably NOT the behavior you're looking for here.
- VerticalLayoutContainer provides a means by which to tell children components how to size themselves via VerticalLayoutData. This includes sizing by:
- actual size
- fixed pixel size