When I load or PerformLayout() on diagrams that are larger than the view, the diagram initially is invisible.
But when I click anywhere on the horizontal scrollbar, the diagram appears.
I've tried adding .Refresh() and .UpdateView() and they don't resolve the problem.
Here's the code, called from an MDI on a child window instance containing the GoView:
GoLayoutTree layout = new GoLayoutTree();
layout.Document = this.goView1.Document;
layout.Alignment = GoLayoutTreeAlignment.CenterChildren;
layout.ArrangementOrigin = new PointF(
((DecisionTreeDoc)goView1.Document).RootNode.Location.X,
((DecisionTreeDoc)goView1.Document).RootNode.Location.Y);
// Make tree go downwards (90 degree angle) rather than across (0 degrees)
layout.Angle = 90.0f;
layout.PerformLayout();
goView1.Document.Bounds = goView1.Document.ComputeBounds();
goView1.UpdateView();
goView1.Refresh();
this.Refresh(); // the containing form
layout.Document = this.goView1.Document;
layout.Alignment = GoLayoutTreeAlignment.CenterChildren;
layout.ArrangementOrigin = new PointF(
((DecisionTreeDoc)goView1.Document).RootNode.Location.X,
((DecisionTreeDoc)goView1.Document).RootNode.Location.Y);
// Make tree go downwards (90 degree angle) rather than across (0 degrees)
layout.Angle = 90.0f;
layout.PerformLayout();
goView1.Document.Bounds = goView1.Document.ComputeBounds();
goView1.UpdateView();
goView1.Refresh();
this.Refresh(); // the containing form
Any thoughts on the cause or help anyone can provide, or suggestions for debugging?
Thanks,
Michael Robinson