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: scrolling bug when grid size == viewport size #5456

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

mattskrobola
Copy link
Contributor

@mattskrobola mattskrobola commented Jul 21, 2022

Fixes a scrolling bug that is caused by unnecessarily rendering ghost cells when the grid height/width is equal to the viewports height/width (commonly happens if the container element has height: "auto"). Similar behavior in this past issue #5027

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Changes hasVerticalOverflow to hasVerticalOverflowOrExactFit to account for the case where height/width is equal to the viewport where we don't need to render ghost cells.

Reviewers should focus on:

Screenshot

before:
beforeBPScroll
after:
afterBPScroll

Copy link
Contributor

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks for the thorough PR @mattskrobola!

@adidahiya adidahiya changed the title [table] fix: vertical/horizontal scrolling bug when grid size is equal to viewport size [table] fix: scrolling bug when grid size == viewport size Jul 22, 2022
@adidahiya adidahiya merged commit d3385fc into develop Jul 22, 2022
@adidahiya adidahiya deleted the mskrobola/fixTableScroll branch July 22, 2022 19:41
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.

None yet

3 participants