Skip to content

Commit 98fe942

Browse files
committed
Fix bad width on markdown editor
1 parent 8343b9b commit 98fe942

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/notebook/browser/viewModel/markdownCellViewModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as editorCommon from 'vs/editor/common/editorCommon';
99
import * as model from 'vs/editor/common/model';
1010
import * as nls from 'vs/nls';
1111
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
12-
import { BOTTOM_CELL_TOOLBAR_GAP, BOTTOM_CELL_TOOLBAR_HEIGHT, CELL_BOTTOM_MARGIN, CELL_MARGIN, CELL_TOP_MARGIN, CODE_CELL_LEFT_MARGIN, COLLAPSED_INDICATOR_HEIGHT } from 'vs/workbench/contrib/notebook/browser/constants';
12+
import { BOTTOM_CELL_TOOLBAR_GAP, BOTTOM_CELL_TOOLBAR_HEIGHT, CELL_BOTTOM_MARGIN, CELL_MARGIN, CELL_RUN_GUTTER, CELL_TOP_MARGIN, CODE_CELL_LEFT_MARGIN, COLLAPSED_INDICATOR_HEIGHT } from 'vs/workbench/contrib/notebook/browser/constants';
1313
import { EditorFoldingStateDelegate } from 'vs/workbench/contrib/notebook/browser/contrib/fold/foldingModel';
1414
import { CellFindMatch, ICellViewModel, MarkdownCellLayoutChangeEvent, MarkdownCellLayoutInfo, NotebookLayoutInfo } from 'vs/workbench/contrib/notebook/browser/notebookBrowser';
1515
import { MarkdownRenderer } from 'vs/workbench/contrib/notebook/browser/view/renderers/mdRenderer';
@@ -89,7 +89,7 @@ export class MarkdownCellViewModel extends BaseCellViewModel implements ICellVie
8989
}
9090

9191
private computeEditorWidth(outerWidth: number) {
92-
return outerWidth - (CELL_MARGIN * 2) - CODE_CELL_LEFT_MARGIN;
92+
return outerWidth - (CELL_MARGIN * 2) - CODE_CELL_LEFT_MARGIN - CELL_RUN_GUTTER;
9393
}
9494

9595
layoutChange(state: MarkdownCellLayoutChangeEvent) {

0 commit comments

Comments
 (0)