I posted this yesterday but it never appeared on the board.
I am new to GWT and trying to have a TabPanel containing a ScrollPanel
which contains a Tree. Originally I had the Tree directly in the
TabPanel but the panel would not hold its size. when the tree was
collapsed the panel would be very small, but when the tree expanded
the panel would also expand. So then I put the tree into the
scrollPanel and then into the tab panel. this also does the same
thing. all the panels expand and contract depending on if the tree is
collapsed or expanded. below is my code:
private TabPanel navTabPanel = new TabPanel();
private ScrollPanel stateTreeScroll = new ScrollPanel ();
private Tree stateNavTree = new Tree();
.
.
.
stateNavTree.addItem(new TreeItem(region));
//populate the tree with more stuff
.
.
.
stateTreeScroll.setSize("149px", "549px");
stateTreeScroll.setAlwaysShowScrollBars(true);
stateTreeScroll.add(stateNavTree);
navTabPanel.add(divNavTree, "By Division");
navTabPanel.add(stateTreeScroll, "By State");
navTabPanel.setSize("250px", "750px");
navTabPanel.setAnimationEnabled(false);
navTabPanel.selectTab(1);
Any ideas on what is going wrong??
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---