Monday, January 31, 2011

Re: GWT ResizeComposite resizing issue in IE

hi Magnus,

Thanks for the reply, actually I could make it using ResizeComposite
in GWT without doing any hacks :). The trick is, from the main
container to child widget the resize events should be populated
correctly. Therefore, we have to implement ResizeComposite through out
that path. then it works fine.

Cheers.
Lakshitha

On Jan 5, 6:30 am, Magnus <alpineblas...@googlemail.com> wrote:
> Hi,
>
> I had a similar issue with IE7 and I found that it must be some bug in
> GWT für IE.
>
> However, I fixed it by triggering a delayed forceLayout, i. e. a
> deferred command that is executed after all events have been handled:
>
>  private void forceLayoutLater ()
>  {
>   if (forced)
>    return;
>
>   forced = true;
>
>   Scheduler.get().scheduleDeferred
>   (
>     new ScheduledCommand()
>     {
>      @Override
>      public void execute()
>      {
>       if (getParent () != null) // if no parent, then we were removed!
>        forceLayout();
>       forced = false;
>      }
>     }
>   );
>  }
>
>  /////////////////////////////////////////////////////////////////////////// ////
>  // @Override
>
>  public void onResize()
>  {
>   super.onResize();
>   adjust (); // do all size and position adjustments
>   forceLayoutLater (); // needed for IE 7 :-(
>  }
>
> HTH,
> Magnus

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate