Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Optimize get page scrollheight #18

Merged
merged 7 commits into from May 26, 2019

Conversation

wswebcreation
Copy link
Owner

  • in some cases the default document.body.scrollHeight is not sufficient, there can be other factors that influence determining the height of the page
  • for full page screenshots the scollbars only need to be hidden after a scroll, bot before. This might block scrolling in some situations
  • in some cases the scroll can't be done on the window, it need to be done on the largest element.
  • add tests and increase coverage
  • fix to add overflow to the body instead of the html element
  • update dependencies

- in some cases the default `document.body.scrollHeight` is not sufficient, the can be other factors that influence determining the height of the page
- for full page screenshots the scollbars only need to be hidden after a scroll, bot before. This might block scrolling in some situations
in some cases the scoll can't be done on the window, it need to be done on the largest element.
@wswebcreation wswebcreation merged commit 96edcff into master May 26, 2019
@wswebcreation wswebcreation deleted the feat/optimize-get-page-scrollheight branch May 26, 2019 05:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant