private void CalculateChild(IGraphBox child) { child.SetLocalPosition(0, Height); child.AddGlobalPosition(GlobalPositionX + child.LocalPositionX, GlobalPositionY + child.LocalPositionY); Height += child.Height; if (child.Width > Width) { Width = child.Width; } }
private void CalculateChild(IGraphBox child) { child.SetLocalPosition(Width, 0); child.AddGlobalPosition(GlobalPositionX + child.LocalPositionX, GlobalPositionY + child.LocalPositionY); Width += child.Width; if (child.Height > Height) { Height = child.Height; } }