Hi,
I have Window that I open up at some point of the application. The window contains a content panel which has its height smaller than the height of the entire window (because I am going to have other components added into that window later).
I am setting the height of the content panel and adding a TreePanel into that content panel. However, when I expand the nodes of the tree, they go below the border of the content panel and the scrollbar doesn't appear within that content panel for me to be able to scroll through the items in the TreePanel.
Here is the code:
public class MyWindow extends Window
{
public MyWindow()
{
MyContentTreePanel p = new MyContentTreePanel();
this.add(p);
}
}
public class MyContentTreePanel extends ContentPanel
{
public MyContentTreePanel()
{
this.setHeight(100);
.....
TreePanel<ModelData> treePanel = new TreePanel<ModelData>(treeStore);
treePanel.setCheckable(true);
this.add(treePanel);
}
}
What do I have to do to get that to work?
Thanks,
Yaakov.