Re: GWT ResizeComposite resizing issue in IE
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