We have a quite strange problem that seems to be related to GoDiagram, but I do not really have any idea what could be the reason of it. Anyway, I’ll try to explain it:
We programmatically create a node of a type derived from GoSubgraph (it is created collapsed). Usually, it works correctly, the node appears on the view. But sometimes, it does not appear immediately.
When that happens, selecting with the GoToolRubberBanding some nodes arround the position where the newly created node should be, makes it appear (only partially visible, if the GoToolRubberBanding only covered a portion of the yet to be born node), but the node itself is not selected.
I tried to add several InvalidateViews after the node creation, but it didn’t change anything.
I finally managed to have some more information on what condition triggered this strange behaviour: It depends (probably among other unknown factors) on the GoView.DocPosition of the document. For instance, it works correctly for a position of (-20;55), incorrectly from (-20;56) to (-20,64), then correctly again. I give those figures in case they may remind something to someone.
Does anybody have any inspiration ? I’m really stuck with this one.