Previously, child's size was not proportional to its span.
e.g. width of span 1 was the same with width of span 2.
Now, child's size is proportional to its span.
Node node = edgeList[i];
// update expanded size.
if (node.Stretch.HasFlag(StretchFlags.Expand))
Node node = edgeList[i];
// update expanded size.
if (node.Stretch.HasFlag(StretchFlags.Expand))
- node.ExpandedSize = curExpandedSize / totalExpand;
+ node.ExpandedSize = curExpandedSize * (node.End - node.Start) / totalExpand;
}
// re-init locations based on updated expanded size.
}
// re-init locations based on updated expanded size.