On 14 December 2010 18:35, John LaBanca <[email protected]> wrote:
> You need an unbroken chain of ProvidesResize up to the RootLayoutPanel.

Okay, I've implemented a small test. MySimplePanel extends SimplePanel
and adds ProvidesResize and RequiresResize.

public class MySimplePanel
  extends
    SimplePanel
  implements
    ProvidesResize,
    RequiresResize
{
  @Override
  public void onResize()
  {
    GWT.log("onResize()");
    final Widget child = getWidget();
    if (child instanceof RequiresResize)
    {
      ((RequiresResize) child).onResize();
    }
  }
}

Then in UiBinder I've wrapped the StackLayoutPanel in a MySimplePanel.
It doesn't seem to change anything, I still get the same behaviour as
with a "normal" SimplePanel wrapping SLP.

In fact, MySimplePanel.onResize is never called. AFAICT, SLP.onResize
is never even called. What am I missing?

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