@@ -7,6 +7,7 @@ import * as nls from 'vs/nls';
77import * as lifecycle from 'vs/base/common/lifecycle' ;
88import { TPromise } from 'vs/base/common/winjs.base' ;
99import { KeyCode } from 'vs/base/common/keyCodes' ;
10+ import { ScrollbarVisibility } from 'vs/base/common/scrollable' ;
1011import * as dom from 'vs/base/browser/dom' ;
1112import { ITree } from 'vs/base/parts/tree/browser/tree' ;
1213import { 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