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

wrong handling only one children if children larger than parent #16

Open
dom1nga opened this issue Dec 21, 2012 · 0 comments
Open

wrong handling only one children if children larger than parent #16

dom1nga opened this issue Dec 21, 2012 · 0 comments

Comments

@dom1nga
Copy link

dom1nga commented Dec 21, 2012

i use firefox 17.0.1.
using plugin with {live: true} and css media queries.
after loading page i get what expected, but only in one case, when children element is larger than parent it wrong truncate text.
after resizing all looks ok.
have to use spike <span>&nbsp;</span> before child element to make it works correctly.

code looks like this:

$('.div1').ellipsis({
   live: true
 })

.div0 {
  padding-top: 15px;
  padding-right: 15px;
}

.div1 {
  height: 205px;
  padding: 0;
  margin: 0;
}

<div class="div0">
  <div class="div1">
    <p>some long text makes this paragraph height more than 205px</p>
  </div>
</div>
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

1 participant