Containers should not consider the size of invisible items when computing their own bounding boxes.

This fixes issues related to the rulers container believing it was taller than it actually is, and possibly other issues also