Friday, December 28, 2012

Vertical align elements in FlowPanel?

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