mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Fix AnsiConsoleOutput safe height
The safe height (introduced in 3e2eea730b
) would be 80 (the value of the safe width) instead of 24.
Removing the explicit `defaultValue` parameter ensures that the correct constants are used, i.e. Constants.DefaultTerminalWidth and Constants.DefaultTerminalHeight.
This commit is contained in:

committed by
Patrik Svensson

parent
63b940cf0e
commit
29a43686d4
@ -28,10 +28,10 @@ public sealed class AnsiConsoleOutput : IAnsiConsoleOutput
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int Width => ConsoleHelper.GetSafeWidth(Constants.DefaultTerminalWidth);
|
||||
public int Width => ConsoleHelper.GetSafeWidth();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int Height => ConsoleHelper.GetSafeHeight(Constants.DefaultTerminalWidth);
|
||||
public int Height => ConsoleHelper.GetSafeHeight();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AnsiConsoleOutput"/> class.
|
||||
|
Reference in New Issue
Block a user