Top padding is wrong on comment view zone (#193569)

Fixes #193140

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
Alex Ross
2023-09-20 14:47:40 +02:00
committed by GitHub
parent 3503252879
commit 5528f93f38

View File

@@ -200,7 +200,7 @@ export class CommentThreadWidget<T extends IRange | ICellRange = IRange> extends
} }
display(lineHeight: number) { display(lineHeight: number) {
const headHeight = Math.ceil(lineHeight * 1.2); const headHeight = Math.max(23, Math.ceil(lineHeight * 1.2)); // 23 is the value of `Math.ceil(lineHeight * 1.2)` with the default editor font size
this._header.updateHeight(headHeight); this._header.updateHeight(headHeight);
this._body.display(); this._body.display();