Skip to content

Scroll indicator fixes#821

Merged
kpfefferle merged 2 commits intokpfefferle/scroll-indicatorsfrom
austin/scroll-indicators
May 6, 2020
Merged

Scroll indicator fixes#821
kpfefferle merged 2 commits intokpfefferle/scroll-indicatorsfrom
austin/scroll-indicators

Conversation

@aschenoni
Copy link

Updated some calculations to account for scrollbar offset.

There were some issues with the scrollbar-y causing the box shadow to be improperly placed on the outside of the table area. Since we're already getting the boundRects for the elements in play and using them in calculations, it's easy to calculate the scrollbar width and accommodate for it.

Additionally, the scrollbar caused the shadow to stay on the box even when scrolled all the way to the end since the scrollbar-y made it impossible to horizontally scroll the full pixels distance required to meet the criteria to switch it off.

Included 2 integration tests to cover relevant scrollbar cases with and without frozen rows

@aschenoni aschenoni requested a review from kpfefferle May 6, 2020 19:30
@aschenoni aschenoni changed the title Austin/scroll indicators Scroll indicator fixes May 6, 2020
Copy link
Member

@kpfefferle kpfefferle left a comment

Choose a reason for hiding this comment

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

Thanks!

@kpfefferle kpfefferle merged commit 0cfd313 into kpfefferle/scroll-indicators May 6, 2020
@delete-merged-branch delete-merged-branch bot deleted the austin/scroll-indicators branch May 6, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants