element it finds is becoming the content and the others are getting
ignored.
While I've done a lot with GWT, I'm relatively new to UiBuilder.
However it seems to me that, in keeping with the pattern of
LayoutPanel and DockLayoutPanel, HeaderPanel should have some "special
markup" like <g:header>, <g:footer>, and <g:content> (see
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Panels)
I'm probably WAY OFF on this: That markup not described in the javadoc
nor are you getting a runtime error. Unfortunately GWT Designer
doesn't include a HeaderPanel so I can't draw one then compare it's
XML.
On Jan 5, 10:21 am, Rob <rob.nikan...@gmail.com> wrote:
> Hi,
>
> Why does this not work? "Header top" appears, but nothing else. The
> divs inside the dock layout have zero height. HeaderPanel calls
> onResize for it's 'content' element. Is that not enough to work with
> LayoutPanels? If I remove the HeaderPanel, the DockLayoutPanel works
> as expected. I want to use HeaderPanel, because I want a top div that
> is sized naturally by the browser.
>
> Rob
>
> <g:HeaderPanel>
> <g:Label>Header top</g:Label>
> <g:DockLayoutPanel unit='PX'>
> <g:west size='300'>
> <g:Label>West</g:Label>
> </g:west>
> <g:center>
> <g:Label>Center
> </g:Label>
> </g:center>
> </g:DockLayoutPanel>
> </g:HeaderPanel>
--
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