提交 f5cce7d9 编写于 作者: D Daniel Imms

Add .xterm-hover to avoid mouse events bubbling

上级 4bd73962
......@@ -39,7 +39,7 @@ export class HoverWidget extends Widget {
) {
super();
this._domNode = document.createElement('div');
this._domNode.classList.add('terminal-hover-widget', 'fadeIn', 'monaco-editor-hover');
this._domNode.classList.add('terminal-hover-widget', 'fadeIn', 'monaco-editor-hover', 'xterm-hover');
const rowElement = $('div.hover-row.markdown-hover');
const contentsElement = $('div.hover-contents');
......@@ -114,7 +114,6 @@ export class HoverWidget extends Widget {
}
} else {
if (anchor.y + this._domNode.clientHeight > document.documentElement.clientHeight) {
console.log('fallback, set bottom to', `${anchor.fallbackY}px`);
this._domNode.style.bottom = `${anchor.fallbackY}px`;
} else {
this._domNode.style.top = `${anchor.y}px`;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册