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.

Column width not accurate

See original GitHub issue

Hi, If I want to define the column width, I need to add to almost every width a value of 0.71. So if I want a width of 12, I need actually to define it like column.width = 12.71. Only when it comes to the width of less then 1, this addition actually varies.

Does anybody have an experience, what could cause such a behavior?

Thanks

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jkRaccooncommented, Nov 29, 2019

same on me. mine is Vuejs

0reactions
fbelecommented, Apr 13, 2021

I mean that, which software version are you using to open xlsx (for me it is Microsoft Macintosh Excel v16). It is essential because xlsx format keeps width as a character length, that occurs different width through different OS (dpi changed) or when different default font has been set. More information could be found on the MS Excel documentation page: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-column-widths

However, I don’t know if I understand your issue. Have you possibility to write a simple test code which currently fails? This issue will be resolved if the test becomes to pass.

I’m contributing ExcelJS just for fun. If want you to know something more go into #1500

Sorry for the late reply. Unfortunately I don’t know how much of help can I be in this matter as this bug is from long ago. I know that I was using Windows and the latest Excel at that time, probably v16. Here is my Git repository of the code, but it’s at exactly the same state from that time, as I haven’t been working on it since, so it’s obsolete: https://github.com/fbele/contracts-prototype

Hope it helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

css - Setting column-width not working - Stack Overflow
You should know that the column-width and column-count properties (and most other column-* properties) don't apply to tables, as stated in the Multi-column ......
Read more >
Change the column width and row height - Microsoft Support
To change the default column width for the entire workbook, right-click a sheet tab, and then click Select All Sheets on the shortcut...
Read more >
column-width - CSS: Cascading Style Sheets - MDN Web Docs
The column-width CSS property sets the ideal column width in a multi-column layout. The container will have as many columns as can fit ......
Read more >
How to change and AutoFit column width in Excel - Ablebits
Columns in Excel do not resize automatically as you input data in them. If the value in a certain cell is too large...
Read more >
How to Lock Row Height & Column Width in Excel (Easy Trick)
But in some cases, you may want to lock the cell height and width so that a user cannot make any changes to...
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