Thursday, September 23, 2010

Aligning VerticalPanel within DockLayoutPanel

Hi,

I'm having a little difficulty aligning a VerticalPanel within a
DockLayoutPanel using UIbinder. My solution looks like this:

<g:DockLayoutPanel unit="PCT">
<g:west size="50">
<g:VerticalPanel width="100%">
<g:Cell horizontalAlignment="ALIGN_RIGHT">
<g:VerticalPanel> <!-- Align this to the right -->
<g:Label styleName>MyLabel</g:Label>
<g:Label styleName>MyOtherLabel</g:Label>
</g:VerticalPanel>
</g:Cell>
</g:VerticalPanel>
</g:west>
...

Is this the best way to do this? Shouldn't CSS be able to align the
VerticalPanel in question, without the need for an additional panel to
contain it?

Thanks!

Maurice

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