Added method resize

Added missing method for window resize.