findChildIndexAtPosition and child boundaries
The docs for TextFlow.findChildIndexAtPosition contains the following comment:
Given a relative text position, find the index of the first child FlowElement that contains the relative position. More than one child can contain relative position because of zero length FlowElements.
Examine the children to find the FlowElement that contains the relative position. The supplied relative position is relative to this FlowElement.
I do not understand the meaning or implication of "zero length FlowElements". Nor does the example fragment show any indication of "examining the children".
In a possibly related vein, I don't understand why the parentRelativeEnd of one child equals the parentRelativeStart of the next child; and the method findChildIndexAtPosition finds the preceding child if the position is that duplicated value, even though the text at that position is contained in the second child, not the first.In fact, the position lies one beyond the boundary.
