rviscomi / trunk8

jQuery Truncation Plugin -- THIS PROJECT IS NO LONGER MAINTAINED
MIT License
703 stars 95 forks source link

Doesn't work when container element is 'display:table-cell'. #50

Open tonejac opened 10 years ago

tonejac commented 10 years ago

I have a text container which is set to be:

display: table-cell; vertical-align: middle;

It caused the element to be empty when ran the .trunk8() method on it. I ended up wrapping the text inside a

tab inside my display:table-cell element and it began working.