Putting another panel between the tree and the tab works in IE but in other browsers you see the same effect where the size changes according to the space required.
On Jan 23, 7:40 am, "alex.d" <[email protected]> wrote: > I would rather put another panel (like Vertical- or HorizontalPanel) > between your tree and navTabPanel and set it's size. Works for me ;-) > > On 22 Jan., 23:00, vroom_vroom <[email protected]> wrote: > > > > > Figured it out. GWT needs some better documentation! On the tab panel > > you need to do a .getDeckPanel().setSize(). this is the only way to > > set the size for the actual panel in the tab. > > > 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 -- 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 -~----------~----~----~----~------~----~------~--~---
