@@ -18,7 +18,7 @@ import { Emitter, Event } from '../../../common/event.js';
1818import { KeyCode , KeyMod , ScanCode , ScanCodeUtils } from '../../../common/keyCodes.js' ;
1919import { ResolvedKeybinding } from '../../../common/keybindings.js' ;
2020import { Disposable , DisposableStore , dispose , IDisposable } from '../../../common/lifecycle.js' ;
21- import { isMacintosh , isWindows } from '../../../common/platform.js' ;
21+ import { isLinux , isMacintosh , isWindows } from '../../../common/platform.js' ;
2222import * as strings from '../../../common/strings.js' ;
2323import './menubar.css' ;
2424import * as nls from '../../../../nls.js' ;
@@ -1082,9 +1082,10 @@ export class MenuBar extends Disposable {
10821082 menuHolder . style . opacity = '1' ;
10831083 menuHolder . style . pointerEvents = 'auto' ;
10841084
1085- // On Windows, append dropdown to document.body to avoid stacking context issues
1085+ // On Windows and Linux , append dropdown to document.body to avoid stacking context issues
10861086 // where the dropdown renders behind the workbench content
1087- if ( isWindows ) {
1087+ // Linux experiences the same stacking context issues as Windows
1088+ if ( isWindows || isLinux ) {
10881089 const window = DOM . getWindow ( this . container ) ;
10891090 window . document . body . appendChild ( menuHolder ) ;
10901091 } else {
0 commit comments