spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.

Home Page:https://spectreconsole.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextPath behaves strange together with columns

patriksvensson opened this issue · comments

Information

  • OS: Windows
  • Version: 0.47.0
  • Terminal: Windows Terminal

Describe the bug
TextPath seems to add a new line and/or being greedy about the max size.

To Reproduce

// Works as expected
AnsiConsole.Write(
    new Columns(
        new Panel(new Text("Foo")),
        new Panel(new Text("Bar"))
    ));

// Does not work as expected
AnsiConsole.Write(
    new Columns(
        new Panel(new Text("Baz")),
        new Panel(new TextPath("Qux"))
    ).Collapse());

Expected behavior

The bottom example in the reproduction should look like the top one.

Screenshots

image