Sfoglia il codice sorgente

Fix options used to initialize a sidebar

Steven Silvester 8 anni fa
parent
commit
8cf6aafdad
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      src/application/shell.ts

+ 5 - 1
src/application/shell.ts

@@ -229,7 +229,11 @@ class SideBarHandler {
    */
   constructor(side: string) {
     this._side = side;
-    this._sideBar = new TabBar({ allowDeselect: true });
+    this._sideBar = new TabBar({
+      insertBehavior: 'none',
+      removeBehavior: 'none',
+      allowDeselect: true
+    });
     this._stackedPanel = new StackedPanel();
     this._sideBar.hide();
     this._stackedPanel.hide();