Skip to content

Commit

Permalink
Merge pull request #97629 from microsoft/rebornix/fix-list-view-defau…
Browse files Browse the repository at this point in the history
…lt-translate3d

Fix #97498. Fallback to default value for translate3d
  • Loading branch information
rebornix authored May 13, 2020
2 parents 9581e7a + c5f2f54 commit 69094ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/base/browser/ui/list/listView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
this.rowsContainer = document.createElement('div');
this.rowsContainer.className = 'monaco-list-rows';

if (options.transformOptimization) {
const transformOptimization = getOrDefault(options, o => o.transformOptimization, DefaultOptions.transformOptimization);
if (transformOptimization) {
this.rowsContainer.style.transform = 'translate3d(0px, 0px, 0px)';
}

Expand Down

0 comments on commit 69094ef

Please sign in to comment.