This if condition is incorrect. If should be
`if(!autoContentWidth && wrap)`