fix invisible list element taken in account when computing size.