提交 5f443db8 编写于 作者: I isidor

debugHover: fix scroll for complex hover

fixes #29484
上级 5582a205
......@@ -26,7 +26,7 @@
word-break: normal;
text-overflow: ellipsis;
height: 18px;
overflow: auto;
overflow: hidden;
border-bottom: 1px solid rgba(128, 128, 128, 0.35);
}
......
......@@ -7,6 +7,7 @@ import * as nls from 'vs/nls';
import * as lifecycle from 'vs/base/common/lifecycle';
import { TPromise } from 'vs/base/common/winjs.base';
import { KeyCode } from 'vs/base/common/keyCodes';
import { ScrollbarVisibility } from 'vs/base/common/scrollable';
import * as dom from 'vs/base/browser/dom';
import { ITree } from 'vs/base/parts/tree/browser/tree';
import { Tree } from 'vs/base/parts/tree/browser/treeImpl';
......@@ -62,7 +63,7 @@ export class DebugHoverWidget implements IContentWidget {
this.valueContainer = $('.value');
this.valueContainer.tabIndex = 0;
this.valueContainer.setAttribute('role', 'tooltip');
this.scrollbar = new DomScrollableElement(this.valueContainer, {});
this.scrollbar = new DomScrollableElement(this.valueContainer, { horizontal: ScrollbarVisibility.Hidden });
this.domNode.appendChild(this.scrollbar.getDomNode());
this.toDispose.push(this.scrollbar);
......@@ -268,6 +269,7 @@ export class DebugHoverWidget implements IContentWidget {
this.valueContainer.hidden = true;
this.complexValueContainer.hidden = false;
this.scrollbar.scanDomNode();
return this.tree.setInput(expression).then(() => {
this.complexValueTitle.textContent = expression.value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册