Could you use relative to parent box?
.onGloballyPositioned { coordinates -> val rect = coordinates.boundsInParent() updateChildFrames(i, rect) }