question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ColumnWidth affectes table width

See original GitHub issue

Proof for ColumnWidth issue: [document.pdf](https://github.com/simonbengtsson/jsPDF-AutoTable/files/672403/document.pdf

Issue 1: I am using columnWith for Employee Name.it takes table with out of box

Issue 2: With open saved pdf header border is not showing but view in new tab in browser it shows border right is availabe. Code here:

margin: {top: 70},
styles: {
    cellPadding: 3,
        fontSize: 8,
        valign: 'middle',

        overflow: 'linebreak',
        tableWidth: 'auto',
        //fileColor: [30, 30, 30],
        lineWidth: 1,
},
headerStyles: {
    //columnWidth: 'wrap',
    cellPadding: 2,
        lineWidth: 1,
        valign:'top',
        fontStyle: 'bold',
        halign: 'left',    //'center' or 'right'
        //fillColor: [250, 152, 95],
        //textColor: [78, 53, 73], //Black     
        textColor: [255, 255, 255], //White     
        fontSize: 8,

        rowHeight:20
},

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
prabusendhilcommented, Dec 28, 2016

Thank you Simon.

0reactions
prabusendhilcommented, Jan 3, 2017

The above manner I added header and footer Simon

Read more comments on GitHub >

github_iconTop Results From Across the Web

table-layout - CSS: Cascading Style Sheets - MDN Web Docs
Table and column widths are set by the widths of table and col elements or by the width of the first row of...
Read more >
Set the table column width constant regardless of the amount ...
You need to set the cell width (either th or td worked, I set both) AND set the table-layout to fixed . For...
Read more >
How to set fixed width for <td> in a table ? - GeeksforGeeks
We can restrict the column width up to that much percentage of the table's total width. The width attribute is invalid and has...
Read more >
Stop Using To Set Table Width In HTML: Here's Why »
Adjusting Table Column Width. The width attribute, now deprecated, was once the correct way to adjust the width of a table's columns. By...
Read more >
(Legacy) HTML: Tables: Widths and Heights | UW-Eau Claire
It is possible to manipulate the width and height of tables and individual cells by assigning a fixed size in pixels or a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found