Skip to content

Commit

Permalink
Fix alignment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Nov 15, 2022
1 parent c3ec6a7 commit 02ff3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Spectre.Console/Widgets/Align.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected override IEnumerable<Segment> Render(RenderOptions options, int maxWid
{
case VerticalAlignment.Top:
{
var diff = Height - lines.Count;
var diff = height - lines.Count;
for (var i = 0; i < diff; i++)
{
lines.Add(blank);
Expand Down Expand Up @@ -121,7 +121,7 @@ protected override IEnumerable<Segment> Render(RenderOptions options, int maxWid

case VerticalAlignment.Bottom:
{
var diff = Height - lines.Count;
var diff = height - lines.Count;
for (var i = 0; i < diff; i++)
{
lines.Insert(0, blank);
Expand Down

0 comments on commit 02ff3fc

Please sign in to comment.