getChildMeasureSize

fun getChildMeasureSize(min: Int, max: Int, preferred: Int, widthMode: Int): Pair<Int, Int>

Equivalent to HorizontalScrollComponent.onMeasure and VerticalScrollComponent.onMeasure code calling ViewGroup.getChildMeasureSpec