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 [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.

Reply via email to