legend resizes