Fix progress rendering bug

This commit is contained in:
Patrik Svensson
2020-12-04 10:11:12 +01:00
committed by Patrik Svensson
parent ae32785f21
commit 3c504155bc
12 changed files with 89 additions and 4 deletions

View File

@ -58,6 +58,11 @@ namespace Spectre.Console
var width = childWidth + paddingWidth;
var result = new List<Segment>();
if (width > maxWidth)
{
width = maxWidth;
}
// Top padding
for (var i = 0; i < Padding.GetTopSafe(); i++)
{