mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
splitview: fix snap enablement
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user