Add overrides so autosize will work correctly with flowtype