Skip to content

Fix masonry layout #132

@sheoranjs24

Description

@sheoranjs24

Masonry layout does not work well with AngularJS filters. Currently, we are using timeout of ~250ms to wait for AngularJS filters to finish before we reload the masonry. This approach is not good, as the time it takes for AngularJS filters to finish is dependent on the number of items.
A better approach would be to use the dimension of the image to create an empty container. This way we don't have to rely on imageloaded and we don't have to reset/reload the masonry layout (which now creates flickering effect as it rearranges images). Also, masonry reload works well with AngularJS filters if we don't use imageloaded feature.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions