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

Scrollable - Improved change detection #98

Merged
merged 3 commits into from
Jul 4, 2022

Conversation

yairEO
Copy link
Contributor

@yairEO yairEO commented Jul 4, 2022

clientWidth & clientHeight should be taken into consideration when checking for changes in updateScrollbars.

This PR is a result of a bug I've seen in some situations, when the clientHeight changed in an editable (multiline) text box, when content is added/removed, and the scrollbar appears when it shouldn't have.

…n checking for changes in `updateScrollbars`
@yairEO yairEO added bug Something isn't working Scrollable labels Jul 4, 2022
Yair Even Or added 2 commits July 4, 2022 09:56
@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #98 (7917f5f) into master (6f612b7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #98   +/-   ##
=======================================
  Coverage   96.00%   96.00%           
=======================================
  Files          61       61           
  Lines         852      852           
  Branches       29       29           
=======================================
  Hits          818      818           
  Misses         33       33           
  Partials        1        1           
Impacted Files Coverage Δ
src/components/Scrollable/Scrollable.jsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f612b7...7917f5f. Read the comment docs.

@yairEO yairEO merged commit aaeee5b into master Jul 4, 2022
@yairEO yairEO deleted the scrollable-should-update-on-width-or-height-change branch July 4, 2022 07:02
@udia76
Copy link
Collaborator

udia76 commented Jul 4, 2022

🎉 This PR is included in version 1.5.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@udia76 udia76 added the released label Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Scrollable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants