fixes a rendering problem in splitview (#2512)

This commit is contained in:
Anthony Dresser
2018-09-11 12:18:03 -07:00
committed by Karl Burtram
parent 31a3864789
commit a9a01ae479
2 changed files with 6 additions and 3 deletions

View File

@@ -331,8 +331,11 @@ export class ScrollableSplitView extends HeightMap implements IDisposable {
}
layout(size: number): void {
const previousSize = Math.max(this.size, this.contentSize);
const previousSize = this.size;
this.size = size;
this.contentSize = 0;
this.lastRenderHeight = undefined;
this.lastRenderTop = undefined;
this.resize(this.viewItems.length - 1, size - previousSize);
}