Repository navigation
fix(menu): ignore scrollbar-sized window changes - #5303
Open
pcbeingused333 wants to merge 1 commit into
Open
pcbeingused333 wants to merge 1 commit into
pcbeingused333 wants to merge 1 commit into
Conversation
Opening a menu that overflows the page shows a scrollbar. Dimensions reported that as a change and the menu dismissed itself. Fixes callstack#3854
|
Found potential problems with the pull request:
|
Collaborator
|
Thanks! #3854 affects 5.x too, so could you also open this against |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On web, a Menu that does not fit in the window shows a scrollbar. That changes the window size by about 15px. The menu treated every
Dimensionschangeas a reason to callonDismiss, so the menu flashed and closed.A change smaller than a scrollbar on both axes is now ignored. A real resize, such as a rotation from 400×800 to 800×400, still dismisses the menu.
Prepared with the help of an AI coding assistant.
Fixes #3854