glideapps / glideapps/glide-data-grid

Grid fails to bring selected cell into view when exceeding max renderable div size.

Open
#705 5 comments 2 reactions 0 assignees View on GitHub
package:core type:bug
Dominant language
TypeScript
Stars
5.3k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

The grid fails to scroll to the correct position when its height exceeds 28,000,000 pixels. Browsers seem to have a limit on the max height of an element. Chrome is around 28,000,000.

If you look at the playcode below you can see the issue when the grid has too many rows and total height of rows exceeds 28,000,000 in pixels.

Grid1: has 500,000 rows (here you just select a row that the other two grids to should scroll to)
Grid2: has 500,000 rows (height is less than 28m pixels). It scrolls to the same row as Grid1
Grid3: has 3,000,000 rows (height exceeds 28m pixels). It scrolls a different than Grid1. It's not even close, it's way off.

**PlayCode**:
https://playcode.io/1470140

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.