Sunday, July 27, 2014

Re: onResize not called in custom widget

The onResize() method will only be called automatically if you place your widget inside a widget that implements ProvidesResize [1]. Also the RequiresResize/ProvidesResize chain must be correctly setup up to the RootLayoutPanel. The RootLayoutPanel is actually the panel that listens for windows resize events and then calls the onResize() method on its child widgets.

In any other case you must call the onResize() method yourself.

[1] http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/ProvidesResize.html

-- J.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment