Skip to content

bug: Label width not calculated correctly #43

@mabasic

Description

@mabasic

Bug description A clear and concise description of what the bug is.

When I pass a figlet to Label text and in rectangle type only column and row. The class should automatically detect width and height, but when the figlet changes the width is not calculated correctly and the text inside (figlet) is cut short.

But when a provide a known width amd height, then the text is never cut short and works as expected.

Also the types for Label rectangle complains when I pass width, height, row and column, but does not complain when I pass only column and row.

Expected behavior What you expected to happen instead.

The label width should be calculated correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions