Re: How to get HorizontalPanel to left justify and right justify
It was the width of the horizontal panel....needed this:
<g:HorizontalPanel width="100%">
On Jul 21, 8:09 pm, David Vree <david.h.v...@gmail.com> wrote:
> New GWT developer here....
>
> I have a HorizontalPanel inside a DockLayoutPanel. I've nested (via
> UIBinder) two HTML widgets inside the horizontal panel. The first one
> I would like to be aligned with the left side of the page and the
> second one aligned with the right side of the page. The first one
> works fine, but the second one is aligned left...right next to the
> first one! Is the problem with the width of the DockLayoutPanel, the
> width of the HorizontalPanel, or something else?
>
> Here's the XML...any pointers on where I messed up would be
> appreciated:
>
> <g:DockLayoutPanel unit="PX">
> <g:north size="62">
> <g:HorizontalPanel>
> <g:cell horizontalAlignment='ALIGN_LEFT'>
> <g:HTML>
> .........
> </g:HTML>
> </g:cell>
> <g:cell horizontalAlignment='ALIGN_RIGHT'>
> <g:HTML>
> .........
> </g:HTML>
> </g:cell>
> </g:HorizontalPanel>
> </g:north>
> </g:DockLayoutPanel>
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home