Automattic / Automattic/jetpack

Tiled Gallery: Scrollbar show/hide can cause infinite resize

Open
#11,783 2 comments 0 reactions 0 assignees View on GitHub
[Block] Slideshow [Block] Tiled Gallery [Feature] Tiled Gallery [Focus] Blocks [Pri] Low [Status] Auto-allocated Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 14h
Merged PRs (30d)
790

Description

At just the right width and height, the resize logic on mosaic tiled galleries can enter an infinite loop with the scroll bar appearing and disappearing:

- Scrollbar appears to accomodate gallery height.
- Gallery adjusts for container size
- Scrollbar disappears as its no longer needed
- Gallery adjusts for container size
- Repeat…

#### Screenshot / Video

Gif demonstrates, but has low frame rate. In reality its a very fast jitter, flashing between different sizes.

![jitter](https://user-images.githubusercontent.com/841763/50971427-425cfc80-14e4-11e9-9755-645d81b88361.gif)

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified in the issue. Start by reproducing the tiled-gallery jitter at the triggering width and height described in the report, then trace the gallery resize behavior around scrollbar appearance and disappearance. Done means the gallery reaches a stable size without an infinite resize loop or flashing between dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.