Clamp.js icon indicating copy to clipboard operation
Clamp.js copied to clipboard

Clamp.js deletes content of target element

Open rainboxx opened this issue 13 years ago • 4 comments

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

rainboxx avatar Nov 09 '11 23:11 rainboxx

The example is broken for this reason, as well.

afeld avatar Apr 10 '12 05:04 afeld

Hey, any comments from @josephschmitt?

rainboxx avatar Jul 15 '12 20:07 rainboxx

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

jimthedev avatar May 08 '13 03:05 jimthedev

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

mylastore avatar Apr 22 '15 23:04 mylastore