mandete
Forum Replies Created
-
Hi, thanks for your answer. I hope it will be this gallery option soon. But If I fix the min-height manually in this option maybe it won’t work. In my case, depending on the resolution, it has to have one min-height or another. So, maybe the option has to work in other way.
For now, I just made the next trick in Javascript:
setTimeout(function () { jQuery('#galeria').css('min-height', jQuery('#galeria').height());}, 3000); jQuery( window ).resize(function() { setTimeout(function () { jQuery('#galeria').css('min-height', jQuery('#galeria').height());}, 1000); });
I check after 3 seconds (to wait all the thumbnails are loaded) and then I fix the min-height property. Then if I change the resolucion (turning the cellphone or resizing the window, for example) I do the same but waiting less time, 1 second.
There’s a better way to do this? Maybe checking when the gallery is loading? How can I check this?
Thanks.
- This reply was modified 6 years, 1 month ago by mandete.
Hi, maybe I couldn’t explain the error correctly. The first time I click in a category (nested gallery), while it get the images, the gallery gets “height: 0”. So, all the content below go up while. It happens for all categories the first time. The rest of times, it works correctly.
I think the gallery has to keep the previous height while it’s getting the images the first time. The effect now is so weird. I tried to solved with javascript but I couldn’t.
I attached a link to a video to better understand the problem. Look how the section “Comentarios y opiniones” goes up when I click on “Televisión” or “Magia de cerca” the first time.
Link to a video: https://drive.google.com/open?id=1MNSXpRhosZBkbJBllBczzpbAOTzpB4-w
Thanks.