提交 4c786b00 编写于 作者: A Alex Dima

Fixes #26575: More workarounds for Chromium line height quirks

上级 3bb9b531
......@@ -411,7 +411,7 @@ export class TextAreaHandler extends ViewPart {
ta.setFontSize(1);
// Chrome does not generate input events in empty textareas that end
// up having a line height smaller than 1 screen pixel.
ta.setLineHeight(Math.ceil(1 / this._pixelRatio));
ta.setLineHeight(Math.ceil(Math.max(this._pixelRatio, 1 / this._pixelRatio)));
}
ta.setTop(top);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册