React-Grid-Layout 2.3.0: grid items snap abruptly when resizing — smooth transition removed
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
Repro steps
- 1.Open /react-grid-layout/examples/01-basic.html (title 'RGL Example 01 - Basic').
- 2.Scroll down until the full grid of items 0 to 19 is visible.
- 3.Hover the bottom-right corner of item 0 until it highlights and the resize marker appears.
- 4.Drag the resize handle to the right to widen item 0.
- 5.Release the handle and watch item 0 settle to its final size.
Expected
While resizing, the item's drawn size matches the placeholder. On release the item moves smoothly into its snapped grid size, as earlier versions did with a CSS transition.
Actual
At 9s item 0 is drawn wider than the red placeholder area. At 11s it has settled to a narrower width of about 3 columns. The sampled frames do not show an animated transition between the two sizes, which matches the reported abrupt snap. Frames are 2s apart, so a short transition cannot be fully ruled out.
Evidence
Issue markdown (copy-paste ready)
## Summary On the React-Grid-Layout v2.3.0 Basic example, resizing item 0 shows a drag preview larger than the placeholder. On release the item jumps to a smaller final size. No smooth transition was observed in the sampled frames. ## Environment - Browser: Chromium 151.0.7922.34 - OS: macOS - Viewport: 1280x720, DPR 1 - Page: `/react-grid-layout/examples/01-basic.html` (title 'RGL Example 01 - Basic') - Version badge: v2.3.0 ## Steps to reproduce 1. Open the Basic example (0s). 2. Scroll down to the full grid (3s). 3. Hover the bottom-right corner of item 0 until the resize marker appears (7s). 4. Drag the handle to the right (9s). 5. Release and watch item 0 settle (11s). ## Expected The drawn item tracks the placeholder during resize. On release it animates smoothly into its snapped grid size. ## Actual - At 9s item 0 is drawn wider than the red placeholder area. - At 11s item 0 has settled at about 3 columns, narrower than the preview. Items 1, 7, 13 and 19 sit one row lower. Matrix shows `13: [2, 8, 2, 3]` and `19: [2, 11, 2, 2]`. - The frames do not show an animated transition between the two sizes. Frames are 2s apart, so this is not fully confirmed. ## Evidence - 7s: item 0 before resize, `0: [0, 0, 2, 3]`. - 9s: preview box extends past the red placeholder. - 11s: final size is smaller than the preview. - 13s to 19s: hovering items 5, 4 and 8 near their resize handles shows normal highlights. Matrix values do not change. - 15s: item 5 appears about 1px out of grid alignment, then looks normal at 17s. The cause is unclear. ## Suspected area Grid item CSS transition during and after resize in v2.3.0, and how the resized item size is synced with the placeholder. *Recorded with SceneRecap.*
This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →