desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.38k stars 2.11k forks source link

Masonry overlapping problem #1067

Closed engharb closed 5 years ago

engharb commented 5 years ago

Hello,

initial loading of html entities

is succeeded, but every few seconds I used to remove some of those children
and append new ones then I call masonry('layout');.

later on I noticed that some

are overlapping: this means the elements css positions are the same (same features) and I do not exactly how to fix that?

Any ideas?

desandro commented 5 years ago

I'm sorry to see you're having trouble with Masonry. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.

engharb commented 5 years ago

I'm not sure if what I did is correct: https://codepen.io/anon/pen/EeGagE?selected_tag=masonry-docs

I want to delete some element and then append new ones, the new elements are template of html code and in the example it is like:

<div class="item clickAd" style="min-height: 320px; min-width: 300px;">
    <a class="catshadow adshelper" href="javascript:void(0)" url="http://www.google.com">
            <img class="image" src="" title="test click" alt="test click">
    </a>
  </div>
</div>
desandro commented 5 years ago
engharb commented 5 years ago

I followed exactly what is written in the tutorial.