Change auto: width to auto: '' on resize