Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiline: true #14

Open
happyearmuffs opened this issue Apr 17, 2013 · 4 comments
Open

Issue with multiline: true #14

happyearmuffs opened this issue Apr 17, 2013 · 4 comments

Comments

@happyearmuffs
Copy link

When using multiline: true on a div with a set width, and a max-height, truncate seems to always truncates to two lines, regardless of whether the text is meant to be cut off at three or four lines.

@josephspens
Copy link

Hey Mike! Did you find a solution to this? I'm shopping around for a truncation plugin.

@happyearmuffs
Copy link
Author

dotdotdot is the plugin i ended up using, configurable and pretty good, has
some quirks though.
http://dotdotdot.frebsite.nl/
give it a try and let me know what you think.

On Sun, Jul 28, 2013 at 8:55 PM, Joe Spens [email protected] wrote:

Hey Mike! Did you find a solution to this? I'm shopping around for a
truncation plugin.


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-21694822
.

@clarkewd
Copy link

clarkewd commented Jun 7, 2014

Unfortunately the demo is not even working out of the box so I am going to give dotdotdot a try too - which is also on github https://github.com/BeSite/jQuery.dotdotdot

@zacwitte
Copy link
Contributor

zacwitte commented Apr 9, 2015

This issue might be due to the plugin not taking into account the line-height css attribute. I created a branch with the fix here (and submitted a pull request): https://github.com/zacwitte/jquery-truncate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants