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

Text shorter than the slice point is still shortened #7

Closed
treyhunner opened this issue May 16, 2011 · 0 comments
Closed

Text shorter than the slice point is still shortened #7

treyhunner opened this issue May 16, 2011 · 0 comments

Comments

@treyhunner
Copy link
Contributor

When the text is shorter than the slice point it will still be shortened. The check here only checks for widows, not for text that is shorter than the slice point.

Example HTML

<div id="my_text">Test</div>

Example JavaScript

$('#my_text').expander({slicePoint: 45, widow: 1});

Demonstration here

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

2 participants