Open sergeychernyshev opened 10 years ago
Here's the gist illustrating markup https://gist.github.com/sergeychernyshev/900adc87806925cab133
I tried to reproduce the issue using your markup in this JSFiddle: http://jsfiddle.net/NaHr7/
Is that close to what you're seeing?
Yes, I believe that's it.
My temporary work-around is to insert an empty div with clear:both on it above the text.
I'm having an issue with truncating an element that clears parent with "clear: both". Basically, when placeholder "i" is inserted, it does not behave the same way as original element does and therefore innerHeight() is measured on element that didn't clear making the compared height too high.