DockLayoutPanel assumes that "center" is all the space that wasn't taken up
by a component that was added to the north, east, etc. There's a built in
assumption that when you call add() you have finished adding any components
that will be docked to an edge.

Ivan...

On Wed, Aug 10, 2011 at 3:09 AM, frische <[email protected]> wrote:

> Hi,
> why does DockLayoutPanel need its Center Element last? Also, why does
> GWT Designer allow that? Should I file a bug?
>
> The error thrown if you add an element after the center is:
> "
> dockLayoutPanel.addEast(stackLayoutPanel, 12.0)
>
> Exception during method invocation evaluation
> An exception happened during evaluation of
>
> dockLayoutPanel.addEast(stackLayoutPanel, 12.0)
>
> Method public void
>
> com.google.gwt.user.client.ui.DockLayoutPanel.addEast(com.google.gwt.user.client.ui.Widget,double)
> was used with the parameters {<div style="position: relative; "
> class="gwt-StackLayoutPanel"><div style="position: absolute; z-index:
> -32767; top: -20ex; width: 10em; height: 10ex; ">&nbsp;</div><div
> style="position: absolute; overflow-x: hidden; overflow-y: hidden;
> "><div class="gwt-HTML gwt-StackLayoutPanelContent" style="position:
> absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; ">Empty
> StackLayoutPanel.</div></div><div style="position: absolute; overflow-
> x: hidden; overflow-y: hidden; "><div class="gwt-HTML gwt-
> StackLayoutPanelHeader" style="position: absolute; left: 0px; top:
> 0px; right: 0px; bottom: 0px; ">Header</div></div></div>,12.0}.
>  "
>
>
> GWT 2.3 , gwt designer core 2.3.2.r37x201107161253
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to