-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] Fix PositionOverlay width issue for the menu in TopBar #1692
Conversation
@ken3650 I have added as a reviewer on this PR as it reverts some of the changes you made in #1382 @AndrewMusgrave I have added you as a reviewer as it uses your mutation observer code. |
Can you or @AndrewMusgrave explain about |
If the change is needed for this, I'm tempted to cherry pick the commit into v3 |
Seems like it is. |
It's not "needed" but it made debugging and performance of the component a lot better. @AndrewMusgrave please cherry pick. |
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.
Can't speak to all the changes, but 🎩'ed the change against my earlier issue that this changes and all is good 👍
Nope since the code will never run before |
This isn't fixed 😭 the issue still exists |
Quick update: I've been trying to narrow down the reason this is an issue, and it seems to only be reproducible with the
Unfortunately, while I thought I'd fixed this, in spite of these changes the bug is still present in Firefox and Safari and only fixed in Chrome 😞 |
208d0b8
to
d59291f
Compare
Replaced with new PR #2231 |
WHY are these changes introduced?
Fixes #1673
WHAT is this pull request doing?
Using mutation observer so that the resize calculation is being run at the correct time. It is also resetting the left value to 0 which is needed for the recalc.
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
This needs to be tested in web and in Polaris with around 6-7 menu items.
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes