trunk8 icon indicating copy to clipboard operation
trunk8 copied to clipboard

trunk8 does not reproduce cleared element

Open sergeychernyshev opened this issue 11 years ago • 3 comments

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.

sergeychernyshev avatar May 06 '14 21:05 sergeychernyshev

Here's the gist illustrating markup https://gist.github.com/sergeychernyshev/900adc87806925cab133

sergeychernyshev avatar May 06 '14 21:05 sergeychernyshev

I tried to reproduce the issue using your markup in this JSFiddle: http://jsfiddle.net/NaHr7/

Is that close to what you're seeing?

rviscomi avatar May 11 '14 20:05 rviscomi

Yes, I believe that's it.

My temporary work-around is to insert an empty div with clear:both on it above the text.

sergeychernyshev avatar May 12 '14 18:05 sergeychernyshev