disable horizontal scrolling in scm
This commit is contained in:
parent
1c4857aa4a
commit
6906d7e3b2
1 changed files with 6 additions and 2 deletions
|
@ -236,7 +236,10 @@ export class MainPanel extends ViewletPanel {
|
|||
const renderer = this.instantiationService.createInstance(ProviderRenderer);
|
||||
const identityProvider = { getId: r => r.provider.id };
|
||||
|
||||
this.list = this.instantiationService.createInstance(WorkbenchList, container, delegate, [renderer], { identityProvider }) as WorkbenchList<ISCMRepository>;
|
||||
this.list = this.instantiationService.createInstance(WorkbenchList, container, delegate, [renderer], {
|
||||
identityProvider,
|
||||
horizontalScrolling: false
|
||||
}) as WorkbenchList<ISCMRepository>;
|
||||
|
||||
renderer.onDidRenderElement(e => this.list.updateWidth(this.viewModel.repositories.indexOf(e)), null, this.disposables);
|
||||
this.list.onSelectionChange(this.onListSelectionChange, this, this.disposables);
|
||||
|
@ -836,7 +839,8 @@ export class RepositoryPanel extends ViewletPanel {
|
|||
|
||||
this.list = this.instantiationService.createInstance(WorkbenchList, this.listContainer, delegate, renderers, {
|
||||
identityProvider: scmResourceIdentityProvider,
|
||||
keyboardNavigationLabelProvider: scmKeyboardNavigationLabelProvider
|
||||
keyboardNavigationLabelProvider: scmKeyboardNavigationLabelProvider,
|
||||
horizontalScrolling: false
|
||||
}) as WorkbenchList<ISCMResourceGroup | ISCMResource>;
|
||||
|
||||
Event.chain(this.list.onDidOpen)
|
||||
|
|
Loading…
Reference in a new issue