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

make menu dropdown and context menu scrollable when insufficient y space #983

Open
dave-doty opened this issue Sep 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dave-doty
Copy link
Member

dave-doty commented Sep 7, 2024

Some other elements, such as the edit mode selector and the pop-up dialogs (and now on the branch 419-migrate-to-dart-null-safety-mode, the dropdown menus from the top of the screen), automatically get a vertical scrollbar when there is not enough space, due to the css property overflow-y: auto;:

image

If I try this with the css class context-menu, I see this"

image

Not only does it not add a vertical scrollbar as needed, it adds an unnecessary horizontal scrollbar. In fact it even adds it when there is lots of space in both directions:

image

Very confusingly, we needed a vertical scrollbar in the first case and didn't get it, and did not need it in the second case but did get it.

I'd also like to do the same with the menu, e.g., if you click "View" and there's not much vertical space, then a scrollbar should appear. But I have the same problem with the menu: it introduces an unwanted horizontal scrollbar as well, even when it is not needed.

@dave-doty dave-doty added the bug Something isn't working label Sep 7, 2024
@dave-doty dave-doty changed the title make context menu scrollable when insufficient y space make menu dropdown and context menu scrollable when insufficient y space Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants