splitview: fix snap enablement

This commit is contained in:
Joao Moreno
2019-07-15 21:45:22 +02:00
parent c836dfa080
commit cfdc5898cb
2 changed files with 45 additions and 54 deletions

View File

@@ -103,7 +103,7 @@
this.minimumSize = typeof minimumSize === 'number' ? minimumSize : 100;
this.maximumSize = typeof maximumSize === 'number' ? maximumSize : Number.POSITIVE_INFINITY;
this.onDidChange = Event.None;
this.snap = true;
this.snap = !minimumSize && !maximumSize;
this.button = document.createElement('button');
this.button.onclick = () => splitview.setViewVisible(this.id, !splitview.isViewVisible(this.id));