提交 b51f3447 编写于 作者: S SteVen Batten

don't use tranlate3d in notebooks for custom menus

Co-authored-by: NSteVen Batten <sbatten@microsoft.com>
Co-authored-by: Nrebornix <penlv@microsoft.com>
上级 3e9c6eaf
...@@ -55,6 +55,9 @@ import { IListContextMenuEvent } from 'vs/base/browser/ui/list/list'; ...@@ -55,6 +55,9 @@ import { IListContextMenuEvent } from 'vs/base/browser/ui/list/list';
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView'; import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
import { IMenuService, MenuId } from 'vs/platform/actions/common/actions'; import { IMenuService, MenuId } from 'vs/platform/actions/common/actions';
import { IAction, Separator } from 'vs/base/common/actions'; import { IAction, Separator } from 'vs/base/common/actions';
import { isMacintosh, isNative } from 'vs/base/common/platform';
import { getTitleBarStyle } from 'vs/platform/windows/common/windows';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
const $ = DOM.$; const $ = DOM.$;
...@@ -214,6 +217,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor ...@@ -214,6 +217,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
@IStorageService storageService: IStorageService, @IStorageService storageService: IStorageService,
@INotebookService private notebookService: INotebookService, @INotebookService private notebookService: INotebookService,
@IConfigurationService private readonly configurationService: IConfigurationService, @IConfigurationService private readonly configurationService: IConfigurationService,
@IEnvironmentService private readonly environmentService: IEnvironmentService,
@IContextKeyService readonly contextKeyService: IContextKeyService, @IContextKeyService readonly contextKeyService: IContextKeyService,
@ILayoutService private readonly layoutService: ILayoutService, @ILayoutService private readonly layoutService: ILayoutService,
@IContextMenuService private readonly contextMenuService: IContextMenuService, @IContextMenuService private readonly contextMenuService: IContextMenuService,
...@@ -401,7 +405,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor ...@@ -401,7 +405,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
multipleSelectionSupport: false, multipleSelectionSupport: false,
enableKeyboardNavigation: true, enableKeyboardNavigation: true,
additionalScrollHeight: 0, additionalScrollHeight: 0,
transformOptimization: true, transformOptimization: (isMacintosh && isNative) || getTitleBarStyle(this.configurationService, this.environmentService) === 'native',
styleController: (_suffix: string) => { return this._list!; }, styleController: (_suffix: string) => { return this._list!; },
overrideStyles: { overrideStyles: {
listBackground: editorBackground, listBackground: editorBackground,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册