Add padder widget

This commit adds a padder can be use to pad other IRenderable
objects such as tables, panels, grids, text, etc.
This commit is contained in:
Patrik Svensson
2020-09-14 23:34:02 +02:00
committed by Patrik Svensson
parent 314456ca17
commit 7d6104ace4
13 changed files with 366 additions and 55 deletions

View File

@ -21,6 +21,7 @@ namespace Spectre.Console
/// <summary>
/// Gets or sets the padding of the column.
/// Vertical padding (top and bottom) is ignored.
/// </summary>
public Padding Padding
{
@ -48,7 +49,7 @@ namespace Spectre.Console
/// </summary>
public GridColumn()
{
_padding = new Padding(0, 2);
_padding = new Padding(0, 0, 2, 0);
}
}
}