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

[FW][FIX] website: fix searchbar menu position #160416

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 3, 2024

Steps to reproduce the bug:

  • In Website edit mode.
  • Drag & drop a "inner content" search snippet into the footer.
  • Save the page.
  • Enter the letter "h" in the input.
  • Bug: The dropdown doesn't adapt properly and increases the height of
    the page.

This commit fixes this issue by detecting if the searchbar menu
overflows at the bottom of the page when it's open. If it does, we
reduce its height, and if it still overflows despite the reduced height,
then we move it above the search bar instead of below.

task-3751401

Forward-Port-Of: #156480

@robodoo
Copy link
Contributor

robodoo commented Apr 3, 2024

Pull request status dashboard.

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 3, 2024

This PR targets saas-16.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 3, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 3, 2024
@fw-bot fw-bot force-pushed the saas-16.4-15.0-fix-searchbar-menu-position-bvr-L5cp-fw branch from bfb34c6 to 7af66a9 Compare April 8, 2024 14:24
@C3POdoo C3POdoo requested a review from a team April 8, 2024 14:26
Steps to reproduce the bug:

- In Website edit mode.
- Drag & drop a "inner content" search snippet into the footer.
- Save the page.
- Enter the letter "h" in the input.
- Bug: The dropdown doesn't adapt properly and increases the height of
the page.

This commit fixes this issue by detecting if the searchbar menu
overflows at the bottom of the page when it's open. If it does, we
reduce its height, and if it still overflows despite the reduced height,
then we move it above the search bar instead of below.

task-3751401

X-original-commit: d6fb565
@fw-bot fw-bot force-pushed the saas-16.4-15.0-fix-searchbar-menu-position-bvr-L5cp-fw branch from 7af66a9 to 02ada8d Compare April 8, 2024 14:27
robodoo pushed a commit that referenced this pull request Apr 23, 2024
Steps to reproduce the bug:

- In Website edit mode.
- Drag & drop a "inner content" search snippet into the footer.
- Save the page.
- Enter the letter "h" in the input.
- Bug: The dropdown doesn't adapt properly and increases the height of
the page.

This commit fixes this issue by detecting if the searchbar menu
overflows at the bottom of the page when it's open. If it does, we
reduce its height, and if it still overflows despite the reduced height,
then we move it above the search bar instead of below.

task-3751401

closes #160416

X-original-commit: d6fb565
Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
@robodoo robodoo closed this Apr 23, 2024
@fw-bot fw-bot deleted the saas-16.4-15.0-fix-searchbar-menu-position-bvr-L5cp-fw branch May 7, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants