wip: tree user-independent horizontal scrolling

This commit is contained in:
Joao Moreno
2018-03-12 12:30:20 +01:00
parent 0ece60040f
commit 86e5a0b4c3
6 changed files with 41 additions and 38 deletions

View File

@@ -24,6 +24,7 @@ import { DefaultController, IControllerOptions, OpenMode, ClickBehavior } from '
import { isUndefinedOrNull } from 'vs/base/common/types';
import { IEditorOptions } from 'vs/platform/editor/common/editor';
import Event, { Emitter } from 'vs/base/common/event';
import { ScrollbarVisibility } from '../../../base/common/scrollable';
export type ListWidget = List<any> | PagedList<any> | ITree;
@@ -299,7 +300,7 @@ export class WorkbenchTree extends Tree {
@IInstantiationService instantiationService: IInstantiationService,
@IConfigurationService private configurationService: IConfigurationService
) {
super(container, handleTreeController(configuration, instantiationService), mixin(options, { keyboardSupport: false } as ITreeOptions, false));
super(container, handleTreeController(configuration, instantiationService), { horizontalScrollMode: ScrollbarVisibility.Auto, keyboardSupport: false, ...options });
this.contextKeyService = createScopedContextKeyService(contextKeyService, this);
this.listDoubleSelection = WorkbenchListDoubleSelection.bindTo(this.contextKeyService);