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.

[Q]Alignment and wrap-text

See original GitHub issue

💬 Questions and Help

Hi!

I have a doubt with the aligment property and the wrap text option.

When i do:

worksheet.getRow(startRow).alignment = { wrapText: true };

The cells auto-fit the height and work fine, the problem comes when i use this option and the cells are merged. If the cells are merged the height is the default height…

Is there any way to use the option with merged cells?

Thanks in advance!!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
banana618859commented, Jun 29, 2021

I try to anthor way to resolve this problem. just set row height,i will compute the word length and row count worksheet.getRow(i).height = word length / row contain length * 13.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrap text around a picture in Word - Microsoft Support
Select a picture. Go to Picture Format or Format > Wrap Text > Square. ... Select Position > More Layout Options. On the...
Read more >
How to wrap text in Excel automatically and manually - Ablebits
The fastest way is to select the cell(s) and click the Wrap Text button (Home tab > Alignment group) to toggle text wrapping...
Read more >
How to Wrap Text in Excel (Easy Tutorial)
On the Home tab, in the Alignment group, click Wrap Text. Click Wrap Text. Result: Wrapped Text in Excel. 3. Click on the...
Read more >
4 Ways to Wrap Text in Excel
Go to the Alignment tab in the menu ➜ Check the Wrap text option in the Text control section ➜ then press the...
Read more >
Wrapping and breaking text - CSS: Cascading Style Sheets
In CSS, if you have an unbreakable string such as a very long word, by default it will overflow any container that is...
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