mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 12:10:22 -05:00
fix chat height in collapse state
This commit is contained in:
@@ -290,6 +290,7 @@ export class CodeCellViewModel extends BaseCellViewModel implements ICellViewMod
|
||||
} else {
|
||||
const codeIndicatorHeight = notebookLayoutConfiguration.collapsedIndicatorHeight;
|
||||
const outputIndicatorHeight = outputTotalHeight + outputShowMoreContainerHeight;
|
||||
const chatHeight = state.chatHeight ? this._chatHeight : this._layoutInfo.chatHeight;
|
||||
|
||||
const outputContainerOffset = notebookLayoutConfiguration.cellTopMargin + notebookLayoutConfiguration.collapsedIndicatorHeight;
|
||||
const totalHeight =
|
||||
@@ -297,6 +298,7 @@ export class CodeCellViewModel extends BaseCellViewModel implements ICellViewMod
|
||||
+ notebookLayoutConfiguration.collapsedIndicatorHeight
|
||||
+ notebookLayoutConfiguration.cellBottomMargin //CELL_BOTTOM_MARGIN
|
||||
+ bottomToolbarDimensions.bottomToolbarGap //BOTTOM_CELL_TOOLBAR_GAP
|
||||
+ chatHeight
|
||||
+ commentHeight
|
||||
+ outputTotalHeight + outputShowMoreContainerHeight;
|
||||
const outputShowMoreContainerOffset = totalHeight
|
||||
@@ -312,7 +314,7 @@ export class CodeCellViewModel extends BaseCellViewModel implements ICellViewMod
|
||||
fontInfo: state.font ?? this._layoutInfo.fontInfo ?? null,
|
||||
editorHeight: this._layoutInfo.editorHeight,
|
||||
editorWidth,
|
||||
chatHeight: 0,
|
||||
chatHeight: chatHeight,
|
||||
statusBarHeight: 0,
|
||||
commentHeight,
|
||||
outputContainerOffset,
|
||||
|
||||
Reference in New Issue
Block a user