Fix waterfall layout to calculate correct content view size and layout attributes for footer view of collection view.