Comments (6)
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.
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.
It works as charm!!! Legendary!
from ngx-masonry.
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.
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.
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)
- masonry is break when is on chrome print pdf pre-viewer
- fitWidth broke the resize behavior
- Window is not defined issue after updating to angular v16 HOT 4
- not import in standalone component HOT 1
- SSR: ngOnDestroy generate "Cannot read property 'remove' of undefined" HOT 1
- fitWidth breaks resize HOT 7
- Unable to resolve dependency tree (i'm using Angular 11.x) HOT 1
- Centering items inside the ngx-masonry
- Dynamic responsiveness HOT 2
- Dynamic loading of masonryItems HOT 3
- Angular 13 Support HOT 6
- Could you provide the "live example" repo in README? HOT 1
- 'ngx-masonry' is not a known element HOT 1
- Change array order breaks masonry template 🤔 HOT 5
- How to set containerStyle? HOT 4
- support for angular 14 HOT 4
- Support for Angular 13 HOT 3
- Angular 14 - 'NgxMasonryModule' does not appear to be an NgModule class. HOT 1
- Tests failing with the message ReferenceError: require is not defined HOT 6
- Reference Error: window is not defined Angular 14 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-masonry.