Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[table] fix: vertical scroll bug when ghostCells enabled #5113

Merged
merged 2 commits into from
Feb 3, 2022

Conversation

mattskrobola
Copy link
Contributor

Fixes #4765

Checklist

  • Includes tests

Changes proposed in this pull request:

When calling isGhostIndex to check on whether or not to disable vertical scrolling use rowIndexEnd - 1 vs rowIndexEnd. I think this has something to do with rowIndexEnd being off when the last row barely fits in the initial container view.

Without the change, the test I added fails for ghostCells and passes for non-ghostCells.

Screenshot

Before:
before-scroll

After:
after-scroll

@adidahiya adidahiya changed the title Fix(Table) vertical scroll disable bug when ghostCells enabled [table] fix: vertical scroll bug when ghostCells enabled Feb 3, 2022
@adidahiya adidahiya merged commit 7460d10 into palantir:develop Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table vertical scroll is improperly disabled when ghost cells are visible
2 participants