Skip to content

TextPath behaves strange together with columns #1307

@patriksvensson

Description

@patriksvensson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions