Expose resetDimensions method to call whenever the dimensions of the element or its parent change. Fixes gh-42.