Skip to content

UIScrollView.FitContentToChildren() Method

Definition

Namespace: Brine2D.UI

Expands ContentHeight and ContentWidth to fit all current children based on their Position and Size. Call this after finishing layout so scrolling bounds are set correctly.

C#
public void FitContentToChildren();