未验证 提交 f0ae8408 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #48896 from alexglazkov9/issue_48891

fixes #48891
......@@ -5,6 +5,8 @@
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
const WIDGET_HEIGHT = 29;
export class TerminalWidgetManager {
private _container: HTMLElement;
private _xtermViewport: HTMLElement;
......@@ -77,7 +79,7 @@ class MessageWidget {
this._domNode = document.createElement('div');
this._domNode.style.position = 'absolute';
this._domNode.style.left = `${_left}px`;
this._domNode.style.bottom = `${_container.offsetHeight - _top}px`;
this._domNode.style.bottom = `${_container.offsetHeight - Math.max(_top, WIDGET_HEIGHT)}px`;
this._domNode.classList.add('terminal-message-widget', 'fadeIn');
this._domNode.textContent = _text;
this._container.appendChild(this._domNode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册