Fixed maxContentSize calculation.