bigbite / macy.js

http://macyjs.com/
MIT License
1.28k stars 156 forks source link

Macy and iframe (google reCAPTCHA v2) #85

Open RolandTi opened 3 years ago

RolandTi commented 3 years ago

Hello, I added a google reCaptcha in a Macy instance. It seems to me that the iframe from google is so long to load that Macy doesn't calculate it. (screenshot 1 with macy over the footer's line).

Capture d’écran 2021-03-29 à 19 02 15

But if I resize the window, Macy recalculate everything and it's ok (screenshot 2).

Capture d’écran 2021-03-29 à 19 02 10

So I tried this solution to force recalculate on the first page's load but nothing happened. Any clue ?

<script> window.onload = masonry.recalculate(); </script>

Thanks !