Skip to content

Conversation

@bvr-odoo
Copy link
Contributor

@bvr-odoo bvr-odoo commented Jul 10, 2025

This commit refactors the Parallax effect to fix overflow-related
issues. Parallax backgrounds are now wrapped in an additional element
with "overflow: hidden", instead of applying the "overflow: hidden" rule
directly on the section. This prevents issues such as dropdowns or
animations being cut off when inside a block with a parallax background.

Steps to reproduce the issue:

  • Drag and drop a "Cover" block.
  • Drag and drop a "Search bar" inside the Cover block.
  • Save the page.
  • Type a letter in the "Search bar" so that the dropdown with search
    results overflows the bottom of the Cover block.
  • Bug: The dropdown is cut off, its bottom part is not visible.

task-4926420

@robodoo
Copy link
Contributor

robodoo commented Jul 10, 2025

Pull request status dashboard

@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch 4 times, most recently from 55f2501 to 5fd57f9 Compare July 11, 2025 12:08
@bvr-odoo bvr-odoo marked this pull request as ready for review July 11, 2025 12:11
@C3POdoo C3POdoo requested review from a team July 11, 2025 12:14
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from 5fd57f9 to 91e96e2 Compare July 14, 2025 07:48
@bvr-odoo bvr-odoo requested review from qsm-odoo and removed request for a team July 15, 2025 07:23
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from 91e96e2 to c45ff5d Compare July 28, 2025 12:13
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch 4 times, most recently from 8b1c1f0 to fbd6c72 Compare August 20, 2025 09:19
@bvr-odoo bvr-odoo requested a review from qsm-odoo August 20, 2025 11:27
@bvr-odoo
Copy link
Contributor Author

@qsm-odoo I made the changes

Copy link
Contributor

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

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

@bvr-odoo Could you rebase the two PR here to be sure and check if there is no new occurence that appeared, then I'll merge it so we have this for 19.0 🙏

@bvr-odoo bvr-odoo marked this pull request as draft September 11, 2025 08:37
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from fbd6c72 to ed39f42 Compare September 11, 2025 09:09
@bvr-odoo bvr-odoo changed the base branch from master to 19.0 September 11, 2025 09:16
@bvr-odoo bvr-odoo marked this pull request as ready for review September 11, 2025 09:16
@C3POdoo C3POdoo requested review from a team September 11, 2025 10:10
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from ed39f42 to fe329d3 Compare September 11, 2025 11:24
@bvr-odoo
Copy link
Contributor Author

@bvr-odoo Could you rebase the two PR here to be sure and check if there is no new occurence that appeared, then I'll merge it so we have this for 19.0 🙏

I rebased both PRs onto 19.0
Everyhing is ready

@bvr-odoo bvr-odoo requested a review from qsm-odoo September 11, 2025 13:58
@bvr-odoo
Copy link
Contributor Author

TODO: rebase on MASTER (too late for 19.0)

@bvr-odoo bvr-odoo marked this pull request as draft September 26, 2025 09:40
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from fe329d3 to bfb7c6b Compare September 26, 2025 14:08
@bvr-odoo bvr-odoo changed the base branch from 19.0 to master September 26, 2025 14:09
@bvr-odoo bvr-odoo marked this pull request as ready for review September 29, 2025 06:37
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from bfb7c6b to 92f000f Compare September 29, 2025 11:11
Copy link
Contributor

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

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

Commit message: missing "*: " before apps list

@@ -34,7 +34,7 @@ export class BackgroundPositionOverlay extends Component {
// contains the background. Otherwise it's the section itself.
// And targetContainerEl should always be the section.
this.targetContainerEl = this.props.editingElement.classList.contains("s_parallax_bg")
? this.props.editingElement.parentElement
? this.props.editingElement.parentElement.parentElement
Copy link
Contributor

Choose a reason for hiding this comment

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

And here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we do need it.

*: html_builder, html_editor, website_forum, website_slides

This commit refactors the Parallax effect to fix overflow-related
issues. Parallax backgrounds are now wrapped in an additional element
with "overflow: hidden", instead of applying the "overflow: hidden" rule
directly on the section. This prevents issues such as dropdowns or
animations being cut off when inside a block with a parallax background.

Steps to reproduce the issue:

- Drag and drop a "Cover" block.
- Drag and drop a "Search bar" inside the Cover block.
- Save the page.
- Type a letter in the "Search bar" so that the dropdown with search
results overflows the bottom of the Cover block.
- Bug: The dropdown is cut off, its bottom part is not visible.

task-4926420
@bvr-odoo bvr-odoo force-pushed the master-allow-parallax-children-overflow-bvr branch from 92f000f to 2085d95 Compare October 3, 2025 12:23
Copy link
Contributor

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request Oct 6, 2025
*: html_builder, html_editor, website_forum, website_slides

This commit refactors the Parallax effect to fix overflow-related
issues. Parallax backgrounds are now wrapped in an additional element
with "overflow: hidden", instead of applying the "overflow: hidden" rule
directly on the section. This prevents issues such as dropdowns or
animations being cut off when inside a block with a parallax background.

Steps to reproduce the issue:

- Drag and drop a "Cover" block.
- Drag and drop a "Search bar" inside the Cover block.
- Save the page.
- Type a letter in the "Search bar" so that the dropdown with search
results overflows the bottom of the Cover block.
- Bug: The dropdown is cut off, its bottom part is not visible.

task-4926420

closes #218296

Related: odoo/design-themes#1114
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
robodoo pushed a commit to odoo/design-themes that referenced this pull request Oct 6, 2025
This commit adapts the themes to the new Parallax effect structure.
We now wrap the parallax element in another element with
"overflow: hidden" to avoid setting "overflow: hidden" on sections.
That was causing elements like the dropdown of the search bar to be cut
off and not fully visible.

task-4926420

closes #1114

Related: odoo/odoo#218296
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
@robodoo robodoo added the 19.1 label Oct 6, 2025
@robodoo robodoo closed this Oct 6, 2025
@qsm-odoo qsm-odoo deleted the master-allow-parallax-children-overflow-bvr branch October 6, 2025 14:49
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.

3 participants