odoo/odoo#233911
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/documentation: (runtime 1024s)
- label
- odoo-dev:saas-18.3-18.0-website-scroll-document-jula-474085-fw
- head
- 15d1db6f90ad96d09242771742b4cad7483622aa
- merged
- 8 months ago by Website, Julien Launois (jula)
| odoo/odoo | |
|---|---|
| 18.0 | #228396 |
| saas-18.2 | #233850 |
| saas-18.3 | #233911 |
| saas-18.4 | #234011 |
[FIX] website: get scroll from document element
[FIX] website: get scroll from document element for footer animation
Current behavior before commit:
Since this PR, the scrolling is not done on #wrapwrap anymore.
Now when an animation is set on an element inside the footer it
will not appear if a slideout effect is set on it.
Description of the fix:
Get scrollTop and scrollHeight from the document element instead of
#wrapwrap and add a test tour.
Steps to reproduce:
1. Open the Website builder.
2. Click on a column in the footer.
3. Set an "On Appearance" Animation on it.
4. Set the footer Slideout Effect to "Slide Hover".
5. Add some content on the page so that it's needed to scroll for the
footer to be visible.
6. Save.
7. Scroll to the footer.
=> The column doesn't appear.
[FIX] website: scroll on new entry in faq horizontal
Current behavior before commit:
Since this PR, the scrolling is not done on #wrapwrap anymore.
Now when adding a new entry to the snippet faq horizontal, the page
doesn't scroll automatically to the new entry.
This behavior has actually never worked because the PR that introduced
faq horizontal was merged just after the PR that moved the
scrolling to the document element.
Description of the fix:
Get scrollTop and scrollHeight from the document element instead of
#wrapwrap and add a test tour.
Steps to reproduce:
1. Open the Website builder.
2. Drag a Text block
3. Choose the FAQ horizontal snippet
4. Click on "Add New"
=> The page doesn't scroll to the new entry.