Skip to content

Dim.Auto (DimAutoStyle.Text) confuses TextFormatter when Width is absoulte and Height is auto #3469

@tig

Description

@tig
  • Change CheckBox's constructor to set Height = Dim.Auto (DimAutoStyle.Text)
  • Checkbox unit tests fail when they shouldn't

image

This test sets Width to an absolute.

        var checkBox = new CheckBox
        {
            X = 1,
            Y = Pos.Center (),
            Text = "Check this out 你",
            TextAlignment = Alignment.Centered,
            Width = 25
        };

For some reason, this is confusing TextFormatter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions