Added support for Mojo's 'OnResize' method.