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

What units do table headers use for width? #3817

Open
Napster653 opened this issue Jan 29, 2025 · 0 comments
Open

What units do table headers use for width? #3817

Napster653 opened this issue Jan 29, 2025 · 0 comments

Comments

@Napster653
Copy link

I am creating a simple table passing my data and my headers to it. On my headers array I'm setting the width of each column.

I am using a default a4 page with default mm units, so the max page width is 210.0015555555555

However, if I set one of the columns to that width it doesn't fill the whole page. In column units that is ~280 'something'.

What is that 'something' and how can I convert mm to it?

    let headers_exc = [
        { 'id': 'id', 'name': 'id', 'prompt': ' ', 'width': 10, 'align': 'center', 'padding': 0 },
        { 'id': 'aaa', 'name': 'aaa', 'prompt': 'aaa', 'width': 160, 'align': 'left', 'padding': 0 },
        { 'id': 'si', 'name': 'si', 'prompt': 'SI', 'width': 40, 'align': 'center', 'padding': 0 },
        { 'id': 'no', 'name': 'no', 'prompt': 'NO', 'width': 40, 'align': 'center', 'padding': 0 }
    ];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant