Renamed Resize() to OnResize()