Automattic / Automattic/jetpack
Tiled Gallery: Scrollbar show/hide can cause infinite resize
- 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.

Contributor 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