-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
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
el.style.top = ""; | ||
el.style.left = ""; | ||
el.style["max-height"] = ""; | ||
el.style["max-width"] = ""; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Actually, I can't reproduce the issue neither in 17.0 nor master :/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robodoo r+
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]>
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