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

Table items are not aligned #62

Open
gauravbordoloi opened this issue Jan 22, 2023 · 0 comments · May be fixed by #99
Open

Table items are not aligned #62

gauravbordoloi opened this issue Jan 22, 2023 · 0 comments · May be fixed by #99

Comments

@gauravbordoloi
Copy link

gauravbordoloi commented Jan 22, 2023

When I print the below code, the row items are not aligned to center with the column

printer.tableCustom(
    [
        { text: "Tic tac 5", width: 0.4 },
        { text: "1, align: "CENTER", width: 0.1, style: 'b' },
        { text: "5", align: "CENTER", width: 0.166, style: 'b' },
        { text: "5", align: "CENTER", width: 0.166, style: 'b' },
        { text: "5", align: "CENTER", width: 0.166, style: 'b' }
    ],
    [
        { text: "2 in 1 Agarbatti", width: 0.4 },
        { text: "1, align: "CENTER", width: 0.1, style: 'b' },
        { text: "15", align: "CENTER", width: 0.166, style: 'b' },
        { text: "15", align: "CENTER", width: 0.166, style: 'b' },
        { text: "30", align: "CENTER", width: 0.166, style: 'b' }
    ]
);
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

Successfully merging a pull request may close this issue.

1 participant