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.

Row/column height seems not to work

See original GitHub issue

I’ve tried setting the height on the row and the columns, but nothing seems to work. The data dictates the height. I’m using master branch (0.8).

var doc = pdfjs.createDocument({
  font: fonts.openSansRegular
});
var table = doc.table({
  width: 595.296,
  height: 841.896,
  widths: ['33.3%', '33.3%', '33.3%']
});
var row = table.tr();

data.forEach(function (item, index) {
  row.td(item.ownerName + '\n' + item.address + '\n' + item.city + (item.zip ? ', ' + item.zip : ''), {
    height: 300
  });

  // Create new row after every third column (3 column setup)
  if ((index + 1) % 3  === 0) {
    row = table.tr();
  }
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:28 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
rkusacommented, Dec 28, 2020

I’ve pushed a minHeight option today @chadRoberge Since those are features I am not needing for my own use-case, no ETA, sorry

0reactions
knownasilyacommented, Sep 22, 2021

Would love to get both of these back. Finally upgraded due to node versions, but now having issues due to both of these missing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrap text not adjust row height - Office - Microsoft Learn
In Microsoft Office Excel 2007 and later versions, click the Home tab, click Formatin the Cells group, and then click AutoFit Row Height....
Read more >
How to change and AutoFit row height in Excel - Ablebits
On the Home tab, in the Cells group, click Format > Row Height. In the Row height box, type the desired value, and...
Read more >
Why Can't My Row Height Automatically Adjust?!
If the entire row is empty then AutoFit will adjust to your default row height (NOTE: using AutoFit on an empty column will...
Read more >
How to Lock Row Height & Column Width in Excel (Easy Trick)
Similarly, if you select any cell in the worksheet, click the Home tab, and then click on the Format option, you would see...
Read more >
How to fix the height of rows in the table? - GeeksforGeeks
The height of rows 'tr' in a table can be fixed very easily. This can be done by adding the height attribute in...
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