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] popover: wrong position on updated popover #5375

Closed
wants to merge 1 commit into from

Conversation

hokolomopo
Copy link
Contributor

Description

If a popover has a change of props, we don't clean its style before computing its new height/width, leading to a wrong position sometimes.

Task: 3814260

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

If a popover has a change of props, we don't clean its style before
computing its new height/width, leading to a wrong position sometimes.

Task: 3814260
@robodoo
Copy link
Collaborator

robodoo commented Dec 19, 2024

Pull request status dashboard

el.style.top = "";
el.style.left = "";
el.style["max-height"] = "";
el.style["max-width"] = "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

you're resetting this here to have the correct getBoundingClientRect just below ? Is that right ?

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

@LucasLefevre
Copy link
Collaborator

Actually, I can't reproduce the issue neither in 17.0 nor master :/
I might not do the right thing

Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo r+

robodoo pushed a commit that referenced this pull request Jan 23, 2025
If a popover has a change of props, we don't clean its style before
computing its new height/width, leading to a wrong position sometimes.

closes #5375

Task: 3814260
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants