confine sashes within splitview

This commit is contained in:
Joao Moreno 2019-09-06 21:46:55 +02:00
parent 8df7b76ed1
commit f09997e3b3

View file

@ -911,7 +911,7 @@ export class SplitView extends Disposable {
position += this.viewItems[i].size;
if (this.sashItems[i].sash === sash) {
return position;
return Math.min(position, this.contentSize - 2);
}
}