I'm trying to set a CustomScrollPanel to have a height of 100%, but I'm having trouble making it work. Here's what I've attempted:
public class MyScrollPanel extends Composite implements HasWidgets {
private ResizeLayoutPanel resizeLayoutPanel;
private CustomScrollPanel customScrollPanel;
public MyScrollPanel() {
resizeLayoutPanel = new ResizeLayoutPanel();
resizeLayoutPanel.setStyleName(resources.css().resizeLayoutPanel());
customScrollPanel = new CustomScrollPanel();
customScrollPanel.addStyleName(resources.css().customScrollPanel());
resizeLayoutPanel.add(customScrollPanel);
initWidget(resizeLayoutPanel);
}
This is my CSS snippet:
.resizeLayoutPanel {
height: 100%;
background-color: yellow;
}
Any suggestions on how to make the CustomScrollPanel fill the whole height?