You may be able to do it with CSS, but FlowPanels are not meant for 
controlling layout as you desire (centering).  Can you try one of the other 
Panels, like VerticalPanel or LayoutPanel?

On Friday, December 28, 2012 1:40:01 AM UTC-8, membersound wrote:
>
> Hi,
>
> how can I vertically center elements within a FlowPanel? I have several 
> FocusPanels inside a FlowPanel, which means they are stacked on each other. 
> One of the focuspanels has an image, which should be centered both 
> horizontally and vertically within that focuspanel. But no matter what I 
> tried, it is always placed at the top of this panel.
>
> <g:FlowPanel>
>   <g:FocusPanel>
>     <g:Image resource='{res.myimage}' />
>   </g:FocusPanel>
>
>   <g:FocusPanel>
>     ...
> </g:FlowPanel>
>
> Can anyone help?
>

-- 
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/-/uPbqADQVaEAJ.
To post to this group, send email to google-web-toolkit@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.

Reply via email to