Friday, January 6, 2012

Re: Centering an Image

I found one way to do this. I used a HorizontalPanel as a container
for the image, instead of a SimplePanel.

On Jan 6, 9:11 am, Mike Dee <mdichiapp...@gmail.com> wrote:
> How can I center an image in a panel?  I have a layout that looks like
> this:
>
> Vertical Panel
>   Cell Table
>   Simple Panel
>     Image
>   Cell Table
>
> Basically, this shows an image with a table of data above and a table
> of data below.  I can't get the image to center, however.  In this
> case I tried a SimplePanel, but I'm willing to use whatever works.
>
> Note that the celltable cell (for the SimplePanel) is set for
> alignment of center and middle.  This probably centers the SimplePanel
> within the cell.  But I'm interested in having the Image centered in
> the panel.
>
> Thanks.

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