Fix contentSize bug for pageWidth greater than half of frame width.