mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Fix progress rendering bug
This commit is contained in:

committed by
Patrik Svensson

parent
ae32785f21
commit
3c504155bc
@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user