public GridRow(IEnumerable<IGridRenderable> renderables, Padding pad = null) { Renderables = renderables.ToList(); Pad = pad ?? new Padding(0, 0); Width = Renderables.Aggregate(0, (x, y) => y.Width); Height = Renderables.OrderBy(x => x.Height).First().Height; }
public GridColumn(IEnumerable<IGridRenderable> renderables, Padding pad = null) { Renderables = renderables.ToList(); Pad = pad ?? new Padding(0, 0); Width = Renderables.OrderByDescending(x => x.Width).First().Width; Height = Renderables.Aggregate(0, (x, y) => y.Height); }