Sunday, August 19, 2012

Re: Have ScrollPanel use 100% height?

Hi Jens,

Ok I thought we had to wrap our contents in a ScrollPanel if we wanted scroll support,

Thanks




On Sunday, August 19, 2012 3:55:43 PM UTC-4, mark wrote:
Hi,

I want to make a VerticalPanel inside a ScrollPanel which takes up 100% width and height. I can't get this to work:

  VerticalPanel vp = new VerticalPanel();
  vp.setHeight("100%");
  vp.add(new Label("pleeeeease...");
 
  ScrollPanel sp = new ScrollPanel();
  sp.setHeight("100%");
  sp.add(vp);

  RootPanel.get().add(sp);

What am I missing? The width seems to be 100%, but the height keeps wrapping.

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GqzxywNCOq4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate