Skip to content

Commit

Permalink
Scrollbar for File menu is displaying over Open Recent (microsoft#236998
Browse files Browse the repository at this point in the history
)
  • Loading branch information
g122622 authored Jan 8, 2025
1 parent cee4706 commit 9b0b13d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/base/browser/ui/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,6 @@ class SubmenuMenuActionViewItem extends BaseMenuActionViewItem {
// This allows the menu constructor to calculate the proper max height
const computedStyles = getWindow(this.parentData.parent.domNode).getComputedStyle(this.parentData.parent.domNode);
const paddingTop = parseFloat(computedStyles.paddingTop || '0') || 0;
// this.submenuContainer.style.top = `${this.element.offsetTop - this.parentData.parent.scrollOffset - paddingTop}px`;
this.submenuContainer.style.zIndex = '1';
this.submenuContainer.style.position = 'fixed';
this.submenuContainer.style.top = '0';
this.submenuContainer.style.left = '0';
Expand Down Expand Up @@ -1371,6 +1369,10 @@ ${formatRule(Codicon.menuSubmenu)}
height: 3px;
width: 3px;
}
/* Fix for https://github.com/microsoft/vscode/issues/103170 */
.monaco-menu .action-item .monaco-submenu {
z-index: 1;
}
`;

// Scrollbars
Expand Down

0 comments on commit 9b0b13d

Please sign in to comment.