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

Fix 3 viewports down bug #23288

Merged
merged 2 commits into from Jul 12, 2019
Merged

Fix 3 viewports down bug #23288

merged 2 commits into from Jul 12, 2019

Conversation

cathyxz
Copy link
Contributor

@cathyxz cathyxz commented Jul 11, 2019

The measurement from positionRect.bottom is actually (a call to getClientBoundingRect) measuring distance from viewport top already, not distance from the beginning of the page. There is no need to subtract the scrollTop distance in this case.

  • add tests

@cathyxz cathyxz requested review from sparhami and removed request for sparhami July 11, 2019 21:58
@cathyxz
Copy link
Contributor Author

cathyxz commented Jul 12, 2019

Alas, unit tests for auto-load do not yet exist. I think this is more of the follow up work I need to do here, and will need to be part of a separate PR.

@cathyxz cathyxz merged commit fb87f7d into ampproject:master Jul 12, 2019
@cathyxz cathyxz deleted the bugfix/amp-list branch July 12, 2019 16:35
rindo pushed a commit to logly/amphtml that referenced this pull request Jul 24, 2019
* Fix 3 viewports down bug

* Remove experiment toggles from tests since experiment has been launched
thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
* Fix 3 viewports down bug

* Remove experiment toggles from tests since experiment has been launched
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants