Don't account for hidden items in the layout code