josephschmitt/Clamp.js

Text does not wrap with hyphenation

Opened this issue · 1 comments

If you attempt to put in a word that is too long for the container, it wraps the text but crops off the end of the word. This really should hyphenate the word that is too long and wrap it onto the next line before continuing with the string. Example is here: http://jsfiddle.net/ebqtundo/

image

This word should read Supercalifragalisticexpialdocius but has been cropped.

Try this Css property:
overflow-wrap: break-word;