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 <[email protected]> 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 [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.
