Skip to content

Commit 5f443db

Browse files
committed
debugHover: fix scroll for complex hover
fixes microsoft#29484
1 parent 5582a20 commit 5f443db

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/workbench/parts/debug/browser/media/debugHover.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
word-break: normal;
2727
text-overflow: ellipsis;
2828
height: 18px;
29-
overflow: auto;
29+
overflow: hidden;
3030
border-bottom: 1px solid rgba(128, 128, 128, 0.35);
3131
}
3232

src/vs/workbench/parts/debug/electron-browser/debugHover.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as nls from 'vs/nls';
77
import * as lifecycle from 'vs/base/common/lifecycle';
88
import { TPromise } from 'vs/base/common/winjs.base';
99
import { KeyCode } from 'vs/base/common/keyCodes';
10+
import { ScrollbarVisibility } from 'vs/base/common/scrollable';
1011
import * as dom from 'vs/base/browser/dom';
1112
import { ITree } from 'vs/base/parts/tree/browser/tree';
1213
import { Tree } from 'vs/base/parts/tree/browser/treeImpl';
@@ -62,7 +63,7 @@ export class DebugHoverWidget implements IContentWidget {
6263
this.valueContainer = $('.value');
6364
this.valueContainer.tabIndex = 0;
6465
this.valueContainer.setAttribute('role', 'tooltip');
65-
this.scrollbar = new DomScrollableElement(this.valueContainer, {});
66+
this.scrollbar = new DomScrollableElement(this.valueContainer, { horizontal: ScrollbarVisibility.Hidden });
6667
this.domNode.appendChild(this.scrollbar.getDomNode());
6768
this.toDispose.push(this.scrollbar);
6869

@@ -268,6 +269,7 @@ export class DebugHoverWidget implements IContentWidget {
268269

269270
this.valueContainer.hidden = true;
270271
this.complexValueContainer.hidden = false;
272+
this.scrollbar.scanDomNode();
271273

272274
return this.tree.setInput(expression).then(() => {
273275
this.complexValueTitle.textContent = expression.value;

0 commit comments

Comments
 (0)