stateNavTree.addItem(new TreeItem("region"));
//populate the tree with more stuff
.
.
.
stateTreeScroll.add(stateNavTree);
navTabPanel.add(stateNavTree, "By State");
navTabPanel.setSize("250px", "750px");
so this is basically where i started. instead of having a panel sized
to those dimensions i get a small panel that takes the dimension of
whatever the tree needs, so if it is a collapsed tree i get a small
panel, if the tree is opened the panel size changes to accomodate.
On Jan 21, 11:29 pm, "alex.d" <[email protected]> wrote:
> Can you make a simple and small example that demonstrates the problem?
>
> On 21 Jan., 23:14, vroom_vroom <[email protected]> wrote:
>
>
>
> > Hello,
> > I am new to GWT and having some difficulties with laying the panels
> > out on the screen and them setting the size properly.
> > First I had a TabPanel with a Tree in it. I set the size of the
> > TabPanel like so:
> > navTabPanel.setSize("250px", "750px");
> > This does not appear to do anything though. When I start my viewer,
> > the panel is very small when the tree is collapsed and then expands as
> > the tree expands!
> > So, I thought I would try wrapping my tree in a scroll panel since i
> > will need that anyways, and then placing that in the TabPanel.
> > stateTreeScroll.setSize("149px", "549px");
> > stateTreeScroll.setAlwaysShowScrollBars(true);
> > stateTreeScroll.add(stateNavTree);
> > navTabPanel.add(stateTreeScroll, "By State");
> > navTabPanel.setSize("250px", "750px");
>
> > And again I have the exact same issue!
> > Please help, I am out of ideas
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---