I don't see why you would need this. Whenever you use RootPanel is adds it directly to the document body. I suggest using firebug to debug this problem and check out the html directly. Make sure you or one of your inherited modules is not calling Window.enableScrolling(false);. RootLayoutPanel, from my understanding will give you the effect that you specified, but if you do not use layout panels you should not experience this issue. A VerticalPanel is essentially a one columned table. The html in firebug from calling RootPanel.get().add(new VerticalPanel()); should look like this:
<body> <table/> </body> On Apr 12, 2:37 am, Gilbert Corrales <gcorra...@gmail.com> wrote: > good timing, we just went thru the same headache a couple of days ago > as we are using GWT to build our admin website. > > the problem that you are facing is that by default the RootPanel and > the RootLayoutPanel will wrap everything you put on with a couple of > divs that will intentionally remove any scroll from your components > while at same time expecting your root widget to take over all of the > screen, at least this is what we found out checking the html it > generates... and this might not fit everyone's wishes. > > now to fix this, we found that adding a ScrollPanel as the root widget > and then inside of it the VerticalPanel get things rolling. > > if you use UiBinder it will look something like this: > > <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> > <ui:UiBinder > xmlns:ui='urn:ui:com.google.gwt.uibinder' > xmlns:g='urn:import:com.google.gwt.user.client.ui'> > <g:ScrollPanel> > <g:VerticalPanel > > <g:Label>Make it grow and grow</g:Label> > </g:VerticalPanel> > </g:ScrollPanel> > </ui:UiBinder> > > if not you can pretty much do the same with code. > > hope this helps :) > > cheers! > > p.s we are putting a blog post right now with a little bit more detail > on this as we found no help elsewhere, will update when it's live. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.