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.

Unable to set cell's width

See original GitHub issue

There’s no way to set the width of the table-cell.

The table-cell-properties have method setWidth(width: string | number, type?: WidthType): TableCellProperties But maybe you forgot to add this to the table-cell constructor?

Docx version: 5.0.0-rc6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rpratap2102commented, Jul 23, 2022

Hey, @Rogers-Development-Services I was facing a similar issue recently, not sure this will help you with this late posting here for someone like me

It worked by using a Fixed layout type like this const table = new Table({ width: { size: 100, type: WidthType.PERCENTAGE, }, layout:TableLayoutType.FIXED, rows: rows });

1reaction
exsesxcommented, Sep 30, 2019

Exactly! But we’re not able to set cell width, please tell me that I’m wrong 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Lock Row Height & Column Width in Excel (Easy Trick)
Select all the cells in the worksheet by clicking on the gray triangle at the top-left part of the worksheet. Click on the...
Read more >
Excel column width display not working - Microsoft Community
Click the "Format" drop-down menu in the "Cells" group of the "Home" tab. Select the “Column Width and Row Height" option in the...
Read more >
Column width option not available in specific worksheets
I have a Excel document with several worksheets. In the February worksheet I can adjust the column width option. I get the double-sided...
Read more >
Excel: Can't adjust column width: Troubleshooting steps
Unlocking cells to adjust column width in Excel · Step 1 – Select and interact with your target cell · Step 2 –...
Read more >
How To Use Excel To Lock Width and Height in a Spreadsheet
1. Set the width and height · Click on one or more columns. · Navigate to cells section of the home tab. ·...
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