fix chat height in collapse state

This commit is contained in:
rebornix
2023-11-17 12:19:14 -08:00
parent 487ea5404c
commit cbf528f092

View File

@@ -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,