Fix Issue #236982 : Scrollbar for File menu is displaying over Open Recent #236998
+8
−1
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.
This PR fixes Issue #236982 : Scrollbar for File menu is displaying over Open Recent
Overview
This is not just an issue with the "Open Recent" menu; in fact, it's a common problem for all submenus that have a vertical scrollbar. It is caused by the submenu having too low of a z-index value.
Changes
zIndex = '1'
specification for the submenu wrapper element (div.monaco-submenu
) has been removed from thesrc\vs\base\browser\ui\menu\menu.ts
file, leaving itsz-index
still subject to thez-index
of2000
defined inmenubar.css
.Modified Files
src\vs\base\browser\ui\menu\menu.ts
Testing
I have used my own project to test out this feature
Before this fix:
After this fix: