I cannot describe the best way to do it. From my understanding the
layout panel are mostly used to define a general layout and you need
to push the
areas using nested elements with defined sizes. If you have a look at
the mail sample application, you can see that there make frequent use
of htmlpanels

Best Regards
Sebastian Hennebrueder

On Jan 24, 8:26 pm, Joe Hudson <joe...@gmail.com> wrote:
> Hello,
>
> I am new to GWT 2.0 and was trying out the uiBinder.  I have a simple
> test project to get my feet wet and it isn't working as expected.  I
> am only seeing the north and west sections in FireFox (not the center
> and south sections)  and in IE I see nothing at all.  Could anyone
> please help me understand what I am doing wrong?
>
> I do see the DOM for the missing sections (center and south) in
> Firebug but can't understand why they are not showing up.
>
> Thank you very much.
>
> ---------- FILES ---------
> public class Test implements EntryPoint {
>         @Override
>         public void onModuleLoad() {
>                 RootLayoutPanel.get().add(new MainPanel());
>         }}
>
> ----------------------------
> public class MainPanel extends Composite {
>
>         interface MyUiBinder extends UiBinder<DockLayoutPanel, MainPanel> {
>         }
>
>         private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
>
>         public MainPanel() {
>                 initWidget(uiBinder.createAndBindUi(this));
>         }}
>
> --------------------------
> <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
>         xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>                 <g:DockLayoutPanel unit='EM'>
>                         <g:north size='5'>
>                                 <g:Label>Top</g:Label>
>                         </g:north>
>                         <g:center>
>                                 <g:Label>Body</g:Label>
>                         </g:center>
>                         <g:west size='210'>
>                                 <g:Label>West</g:Label>
>                         </g:west>
>                         <g:south size="3">
>                                 <g:Label>South</g:Label>
>                         </g:south>
>                 </g:DockLayoutPanel>
> </ui:UiBinder>

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