From be0902d428f7bba2429aef0ce931a10c8cfaa90d Mon Sep 17 00:00:00 2001 From: Rob Kooper Date: Tue, 19 Apr 2022 14:39:17 -0500 Subject: [PATCH] fix masonry --- CHANGELOG.md | 5 +++++ app/views/spaces/space.scala.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b23d0aae..b5006da45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +### Fixed +- Fix for a rare race condition with masonry where tiles could end up overlapping in space page. + ## 1.20.1 - 2022-04-04 ### Fixed diff --git a/app/views/spaces/space.scala.html b/app/views/spaces/space.scala.html index 696b81112..363b67a3a 100644 --- a/app/views/spaces/space.scala.html +++ b/app/views/spaces/space.scala.html @@ -148,7 +148,7 @@

@Messages("collections.title")

match.masonry(); // layout Masonry again after all images have loaded - imagesLoaded( '.tiled-image', function() { + imagesLoaded( match, function() { match.masonry({ itemSelector: '.tiled-image', columnWidth: '.post-box',