mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Top padding is wrong on comment view zone (#193569)
Fixes #193140 Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user