Monday, January 30, 2012

Layout Problem of flowpanel and image

I want to make the two image side by side and the label under the two
image, I try to use the method mentioned in
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Design
which said
use FlowPanel, and to use the float: left; CSS property on its
children
to simulate the effect of HorizontalPanel, but fail, the label is next
to the image.
Also, the image could not auto resize according to my setSize method
on image widget.
image1.setSize("100px", "100px");
so many white space is left,
how to solve these two problems?

I already use standard mode by adding
<!doctype html>
in hosted html

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

No comments:

Post a Comment