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

Setting maximal cell width using maxCellWidth does not work #832

Closed
Lofter1 opened this issue Oct 19, 2021 · 1 comment
Closed

Setting maximal cell width using maxCellWidth does not work #832

Lofter1 opened this issue Oct 19, 2021 · 1 comment

Comments

@Lofter1
Copy link

Lofter1 commented Oct 19, 2021

I tried to print a few grids using jsPDF-Autotable, however, some content of some cells is too large, and in combination with a lot of columns, the rest of the columns are extremely small.

I tried to set a maximum cell width like this

options = {
    jsPDFDocumnet: doc,
    component: grid.instance,
    autoTableOptions: {
        margin: 20,
        styles: {
            minCellHeight: 8,
            maxCellWidth: 30
        },
        bodyStyles: {
            minCellHeight: 10
        },
        rowPageBreak: "avoid"
    }
};

However, no matter what number i put in for maxCellWidth, and whether i place it in styles or bodyStyles, the column with the long string in it is still super wide.

I also found no mention of maxCellWidth in the documentation, only in an old issue. Does this option even still exist?

@github-actions
Copy link

This issue will soon be closed since issues in this project are mainly meant to be bugs or feature requests. Questions are directed to stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants