Since Mason does what Isotope/Packery seems unable to do, I switched to using this library. Thanks for the great work. However, I'm trying to implement some filtering and keep running into issues.
Whenever I hide elements with a certain class and run Mason, I get TypeError: Cannot set property 'x' of undefined, where x seems to be a semi-random number. I was hoping implementing my filter would be as simple as hiding the elements I don't need (thus only showing the elements I want in view) and running Mason again to get the positioning correct.
All the elements I have are 'promoted', if I did not set that, I couldn't get the correct layout. Not sure about the ratio, I just stole that from somewhere :8ball:
Since Mason does what Isotope/Packery seems unable to do, I switched to using this library. Thanks for the great work. However, I'm trying to implement some filtering and keep running into issues.
Whenever I hide elements with a certain class and run Mason, I get
TypeError: Cannot set property 'x' of undefined
, wherex
seems to be a semi-random number. I was hoping implementing my filter would be as simple as hiding the elements I don't need (thus only showing the elements I want in view) and running Mason again to get the positioning correct.This is my config (CS):
All the elements I have are 'promoted', if I did not set that, I couldn't get the correct layout. Not sure about the ratio, I just stole that from somewhere :8ball:
Any help would be great. Thanks a lot.