also update the max-height value