Hello,
I'm using a grid layout to layout the nodes inside a container node. The setup is something like below:
1 container node contains
{
8 container nodes that each contain
{
3 to 4 table nodes interlinked
}
}
when i layout the contents of the primary container node using the grid layout, the layout places all container nodes horizontally from left to right in the same row.
it does not create multiple container rows of nodes eg.
this is what i get,
containernode
{
[container] [container] [container] [container]
}
instead of what i want.
containernode
{
[container] [container]
[container] [container]
}
how can I make the layout use multiple rows? below is my layout configuration:
private void LayoutDiagram()
{
this.Cursor = Cursors.WaitCursor;
GridLayout newLayout = new GridLayout();
newLayout.Anchoring = Anchoring.Keep;
newLayout.RandomSeed = 5;
newLayout.Iterations = 15;
newLayout.GridSize = 15;
DiagramItemCollection diagramItems = new DiagramItemCollection();
if (m_diagram.Selection.Nodes.Count > 0)
{
newLayout.StartNode = m_diagram.Selection.Nodes[0];
diagramItems = m_diagram.Selection.Items;
foreach (DiagramItem item in diagramItems)
{
if (item.GetType() == typeof(ProcessNode))
{
ArrangeSubItems(newLayout, item as ContainerNode);
}
}
}
m_diagram.ResizeToFitItems(20);
this.Cursor = Cursors.Default;
}
Maybe I've missed some diagram initialisation to prevent it resizing the diagram or somethins.
anyways any suggestions would be usefull cheers guys.