Giter Site home page Giter Site logo

Comments (6)

wynfred avatar wynfred commented on May 22, 2024 1

Not sure about 1, did you try to call layout() after you switch to another category? If you could share a simple repro project, I'll try if I can find what the issue is. One other suggestion I have is try destroy the masonry before you want to reload it completely.
For 2, before the images are loaded they are invisible with opacity 0. If they are clickable, you need to use your own CSS to hide them, and also make sure they are destroyed properly.

from ngx-masonry.

wynfred avatar wynfred commented on May 22, 2024 1

You can use the show/hide animation to set z-index to the items. When I work on the next release I'll make it default as well.

from ngx-masonry.

webcat12345 avatar webcat12345 commented on May 22, 2024 1

It works as charm!!! Legendary!

from ngx-masonry.

webcat12345 avatar webcat12345 commented on May 22, 2024

That bug 2, my guess is it's happening when I change ideas (list of items) even there are some pending images to be loaded.

from ngx-masonry.

webcat12345 avatar webcat12345 commented on May 22, 2024

That makes sense your comment on issue 2. I can see opacity 0 div is there. But I can't find the best approach to disable click event for all of those opacity 0 divs. Do you have any guidance to give me? I don't see any additional classes added to un-aligned elements (those opacity 0 elements)...

Issue 1, I will try to call layout() function from my side, I will come back after some tries.
Thank you!

from ngx-masonry.

webcat12345 avatar webcat12345 commented on May 22, 2024

By calling the layout() function on category change event, I was able to figure out that issue 1. Not that perfect but it's working.

So, sometime, very barely column shows as 1. But if I change category it's getting recovered because I am calling the layout() function. So I would say issue has been resolved. Just trying to find out best way to handle issue 2, please let me know if you have any hint. Thank you!

from ngx-masonry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.