Resize layout bug

Fixed a resize layout bug that happened as filtered items were being
included in the layout calculations.