Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataGrid - MaxWith is ignored #46

Open
lastunicorn opened this issue Dec 12, 2020 · 0 comments
Open

DataGrid - MaxWith is ignored #46

lastunicorn opened this issue Dec 12, 2020 · 0 comments
Labels

Comments

@lastunicorn
Copy link
Owner

When smaller MaxWidth is set on a grid than its natural width, the value is ignored.

Step 1: Create a DataGrid with a text column containing 50 characters.
Step 2: Set the MaxWidth to 30.
Expected: The width of the rendered DataGrid should be 30.
Actual: The width of the rendered DataGrid is 54 (50 plus the paddings and borders).

Example:
A table like this:

┌────────────────────────────────────────────────────┐
│ Table without colors                               │
├────────────────────────────────────────────────────┤
│ Text                                               │
├────────────────────────────────────────────────────┤
│ Generic types can have multiple generic parameters │
└────────────────────────────────────────────────────┘

When applying a MaxWidth of 30 on it, is expected to be rendered like this:

┌────────────────────────────┐
│ Table without colors       │
├────────────────────────────┤
│ Text                       │
├────────────────────────────┤
│ Generic types can have     │
│ multiple generic           │
│ parameters                 │
└────────────────────────────┘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant