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.

[Terra-text] - `isWordWrapped` property does not wrap long words on IE.

See original GitHub issue

Bug Reportlong ordername truncation

Description

While working on Internet Explorer i have been using terra-text component to wrap my information but i noticed when the resolution of the explorer is reduced the long words does not get wrapped up and text overflows while at the same resolution the same component when loaded on google chrome works fine with text not overflowing.

Steps to Reproduce

  1. Set up long texts like (“zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz”) or (“amnsjxnweiucnweicnxeixnniwnxuwnxiqnxiqwnx”) in the terra-text control with prop-type isWordWrapped passed.
  2. Now reduce the size of the IE window.
  3. We will notice that the text overflows instead of wrapping up

Additional Context / Screenshots

MicrosoftTeams-image (3)

MicrosoftTeams-image (3)long ordername truncation

Expected Behavior

The text should not overflow instead should come down to the next line.

Possible Solution

Environment

  • Component Name and Version:
  • Browser Name and Version: Internet Explorer 10,11, Edge
  • Node/npm Version: [e.g. Node 8/npm 5]
  • Webpack Version:
  • Operating System and version (desktop or mobile): Windows

@ Mentions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amanagasthya0005commented, Sep 6, 2021

@pranav300 We are seeing the issue in chrome as well now, i’ll get back to you with more details on the same.

1reaction
supreethmrcommented, Aug 30, 2021

This issue seems to be not happening on IE 11 as I was able to test the terra-text with large text as shown in screenshot shared below the text was wrapped when isWordWrapped was set.

WhatsApp Image 2021-08-26 at 9 41 18 PM

<Text id="text" isWordWrapped>
texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext
</Text>

I even verified with other examples as well on IE 11. Text was not overflown as shown in the issue. Look at screenshot I think the view holding terra-text is not Modal view. Not sure if we need to consider to include terra-text within IFRAME to see if the overflow happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Explorer 11 word wrap is not working - Stack Overflow
It seems that word wrapping no longer works for textarea elements in IE 11. In IE 10 and earlier, FF, Safari, and Chrome...
Read more >
wordWrap property (Internet Explorer) - Microsoft Learn
The -ms-word-wrap property addresses only whether wrapping is permitted to occur at a place in the word that is not otherwise allowed by...
Read more >
wrap, overflow - wrap - , and - word - break - LogRocket Blog
The default wrapping at soft wrap opportunities may not be sufficient if you are dealing with long, continuous text, such as URLs or...
Read more >
The word-wrap CSS Property and How to Use It
Basically, word-wrap forces the text content targeted by the selector to break any long words that might potentially go outside the layout due ......
Read more >
overflow-wrap - CSS: Cascading Style Sheets - MDN Web Docs
Most words are short & don't need to break. But Antidisestablishmentarianism is long. The width is set to min-content, with a max-width of...
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