Computes spacing between the child's anchor and the portal's anchor, returning an offset by which to shift the portal.
child
portal
Offset resolve(Alignment child, Alignment portal);