@@ -8,7 +8,7 @@ import * as UUID from 'vs/base/common/uuid';
88import * as model from 'vs/editor/common/model' ;
99import { ITextModelService } from 'vs/editor/common/services/resolverService' ;
1010import { PrefixSumComputer } from 'vs/editor/common/viewModel/prefixSumComputer' ;
11- import { EDITOR_BOTTOM_PADDING , EDITOR_TOOLBAR_HEIGHT , EDITOR_TOP_PADDING , CELL_MARGIN , CELL_RUN_GUTTER } from 'vs/workbench/contrib/notebook/browser/constants' ;
11+ import { EDITOR_BOTTOM_PADDING , EDITOR_TOOLBAR_HEIGHT , EDITOR_TOP_PADDING , CELL_MARGIN , CELL_RUN_GUTTER , EDITOR_TOP_MARGIN } from 'vs/workbench/contrib/notebook/browser/constants' ;
1212import { CellEditState , ICellViewModel , CellFindMatch , CodeCellLayoutChangeEvent , CodeCellLayoutInfo , NotebookLayoutInfo } from 'vs/workbench/contrib/notebook/browser/notebookBrowser' ;
1313import { CellKind , ICell , NotebookCellOutputsSplice } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
1414import { BaseCellViewModel } from './baseCellViewModel' ;
@@ -107,9 +107,7 @@ export class CodeCellViewModel extends BaseCellViewModel implements ICellViewMod
107107 // recompute
108108 this . _ensureOutputsTop ( ) ;
109109 const outputTotalHeight = this . _outputsTop ! . getTotalValue ( ) ;
110- const totalHeight = this . outputs . length
111- ? EDITOR_TOOLBAR_HEIGHT + this . editorHeight + EDITOR_TOP_PADDING + 16 + outputTotalHeight
112- : EDITOR_TOOLBAR_HEIGHT + this . editorHeight + EDITOR_TOP_PADDING + EDITOR_BOTTOM_PADDING + outputTotalHeight ;
110+ const totalHeight = EDITOR_TOOLBAR_HEIGHT + this . editorHeight + EDITOR_TOP_MARGIN + 16 + outputTotalHeight ;
113111 const indicatorHeight = this . editorHeight + outputTotalHeight ;
114112 const outputContainerOffset = EDITOR_TOOLBAR_HEIGHT + this . editorHeight ;
115113 const editorWidth = state . outerWidth !== undefined ? state . outerWidth - CELL_MARGIN * 2 - CELL_RUN_GUTTER : 0 ;
0 commit comments