Clamp.js deletes content of target element #3

Open
rainboxx opened this Issue Nov 9, 2011 · 4 comments

Projects

None yet

4 participants

@rainboxx

I have an element with a fixed height and Clamp.js is deleting its content if there is a span within. There were some spans from beginning to the end of the element. Clamp.js was called like this:

$('.clamp').each(function() { $clamp(this, { clamp: 'auto' }) });

The spans were:

<span style="font-style: italic;">...</span>

Don't know by what this is caused, removed Clamp.js for now.

Matthias

@afeld

The example is broken for this reason, as well.

@rainboxx

Hey, any comments from @josephschmitt?

@jimthedev

It actually has to do with ANY inline element inside of the target element.

Here is an example showing a target with an inline element inside the target and one without:
http://codepen.io/jcummins/pen/nvEmf

Here is a screenshot of the problem in FF20 for Mac: http://imgur.com/WJGNQmD

@mylastore

"auto" does not work even on paragraphs with set heights. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment