The existing X.renderer.onResize_ function is only called when the window resizes. If the container is a different element, there was no way to trigger a resize.
This commit adds a X.renderer.resize() function. It does the exact same thing as onResize_(), except that it is now publicly accessible and exported.
Exposing 'resize' function on renderers