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 height doesn't apply to row

See original GitHub issue

Default row height does not apply to the excel generated.

 let infoSheet = this.workbook.addWorksheet("Info", {properties:{ defaultRowHeight: 50 }});

or

infoSheet.properties.defaultRowHeight = 50;

rowheight

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

12reactions
JoeyAspirecommented, Mar 22, 2018

I had the same issue, but i find the following code works: sheet.getRow(2).height = 100; sheet.getRow(3).height = 200; …

10reactions
ScottPeterJohnsoncommented, Apr 6, 2018

For other people having this issue: Are you first opening the generated excel files on the Windows version of Excel 2016? I’ve seen something on that platform where Excel will do weird resizing of rows on a worksheet. I painstakingly tracked this down to exceljs not generating a <sheetView/> element, causing Excel to flip. I fixed this by adding an empty view to all of my worksheets via worksheet.views = [{}]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrap text does not adjust row height in Excel - Microsoft Learn
Workaround. To adjust the height of the row to fit all the text in a cell, follow these steps: Select the row you...
Read more >
How to change and AutoFit row height in Excel - Ablebits
How to adjust row height in inches · Go to the View tab > Workbook Views group and click the Page Layout button....
Read more >
How to fix the height of rows in the table? - GeeksforGeeks
The height attribute is used to set the height of a row. It is added in the <tr> tag. · The height should...
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 make Excel's "Auto Fit Row Height" feature actually ...
Doesn't this method only work if all the columns are the same width? When I resized a column a little wider, all the...
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