Added windows phone to Resize function.