intrinsicContentSize now returns the correct size based on the number of pages. invalidateIntrinsicContentSize now gets called when numberOfPages changes.