I was hoping that because most people (not using the Maps API) wouldn't need
this, it wouldn't be necessary to provide a special case for "layout
complete" outside of the existing animation callbacks. Does it not work to
put the Map in a RequiresResize container and call its layout method when
onResize() is called?

On Thu, Mar 18, 2010 at 2:42 AM, jd <[email protected]> wrote:

> Hi, I use DockLayoutPanel with Google maps and there is a known issue
> where any component inside a DockLayoutPanel that depends on the size
> of its container must be initialized like this:
>
> root.animate(0, new AnimationCallback()
> {
>  public void onLayout(Layer layer, double progress)
>  {
>  }
>
>  public void onAnimationComplete()
>  {
>      // init internal widget
>  }
> }
>
> I was thinking it might be more obvious to include a handler after the
> layout is complete?
>
> addLayoutCompleteHandler()?
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> To unsubscribe from this group, send email to
> google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to
> this email with the words "REMOVE ME" as the subject.
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to