jaredLunde / jaredLunde/masonic

Grid rendering with only one item in the first column

Open
#104 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.4k
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The grid intermittently renders with only one item in the first column.

```

```

**Expected behavior**
I would expect that, as the images load in, the grid shuffles items into the correct spots.

**Screenshots**
Screen Shot 2022-01-25 at 8 12 26 PM

**Desktop (please complete the following information):**

- OS: macOS
- Browser: Chrome
- Version: 97.0.4692.99

**Additional context**
Navigating away from the page and then back fixes the issue, so I'm assuming this has to do with calculating images as they load.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown Masonry configuration in Chrome while images load, then trace the grid's image-loading and layout-calculation entry points. Done means items are redistributed into the correct columns as image dimensions become available, without requiring navigation away and back.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.