After trying out different types of Panels instead of HTMLPanel I discovered
that replacing HTMLPanel with SimpleLayoutPanel would do the trick. But
again I still expect this to work with other panels too. Is it by design, or
do I need to open an issue?


On Tue, Jul 26, 2011 at 5:32 PM, Omid Rad <omidk...@gmail.com> wrote:

> Hi, I'm having a headache why I cannot get a DockPanel inside another
> Panel to work. In the UiBinder code snippet below, only the <g:north/>
> layers are displayed and for some reason the other ones are not shown.
> Is it a GWT bug?
>
>        <ui:style>
>                .panel {border: 3px solid black;}
>        </ui:style>
>
>        <g:HTMLPanel ui:field="mainPanel">
>                <g:DockLayoutPanel unit='EM'>
>                <g:north size='3'>
>                        <g:HTML styleName="{style.panel}">
>                                Header
>                        </g:HTML>
>                </g:north>
>                <g:west size='16'>
>                        <g:HTML styleName="{style.panel}">
>                                Navigation
>                        </g:HTML>
>                </g:west>
>                <g:north size='3'>
>                        <g:HTML styleName="{style.panel}">
>                                Another Header
>                        </g:HTML>
>                </g:north>
>                <g:center>
>                        <g:HTML styleName="{style.panel}">
>                                Content Area
>                        </g:HTML>
>                </g:center>
>                </g:DockLayoutPanel>
>        </g:HTMLPanel>
>
> In my GWT application, my DockPanel is actually coming from another
> UiBinder file, so I need it to be nested. Isn't HTMLPanel the
> suggested panel to use as a main panel that can contain anything?
>
> Thanks!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to