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

Menu position with window scroll #682

Open
iofjuupasli opened this issue Oct 6, 2020 · 0 comments
Open

Menu position with window scroll #682

iofjuupasli opened this issue Oct 6, 2020 · 0 comments
Labels
Status: Unconfirmed Bug reports without a repro, not yet confirmed Type: Bug Something isn't working

Comments

@iofjuupasli
Copy link

🐛 Bug report

Current Behavior

positionDefault uses getCollisions which uses window.innerWidth. But innerWidth returns width of window with scrollbar.

As result if you have Menu that should dropdown near the right end of page, there is big chance it overflow the window. So horizontal scroll appears.

Screenshot from 2020-10-06 15-44-04 1

Expected behavior

Position of Menu should respect scroll on window

Your environment

Software Name(s) Version
Reach Package 0.11.2
React
Browser Google Chrome 85.0.4183.121
Assistive tech
Node
npm/yarn
Operating System Ubuntu 20.04
@chaance chaance added Status: Unconfirmed Bug reports without a repro, not yet confirmed Type: Bug Something isn't working labels Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed Bug reports without a repro, not yet confirmed Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants