scroll.updateContent()
Re-calculates and updates the size of the content and the dragging constraints. It also accounts for the contentInset.
If you're looking to change the size of your content layers, you can call it to update the size of your ScrollComponent accordingly.
译:重新计算并更新内容的大小和拖动限制。它也占contentinset。
scroll = new ScrollComponent
# Update the contents of the ScrollComponent
scroll.updateContent()