There is some crucial information in the javadoc for CellPanel about
using horizontal and vertical alignment in ui.xml.  The subclasses of
CellPanel (DockPanel, HorizontalPanel, VerticalPanel) should enclose
child widgets within <g:cell> elements.  The alignment attributes
(e.g. horizontalAlignment="ALIGN_CENTER") should be added to the
<g:cell> elements.  The example from the javadoc follows:

 <g:HorizontalPanel>
   <g:cell width='5em' horizontalAlignment='ALIGN_RIGHT'>
     <g:Label ui:field='leftSide' />
   </g:cell>
   <g:cell width='15em' horizontalAlignment='ALIGN_LEFT'>
     <g:Label ui:field='rightSide' />
   </g:cell>
 </g:HorizontalPanel>

--

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-tool...@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