Procházet zdrojové kódy

Fix options used to initialize a sidebar

Steven Silvester před 8 roky
rodič
revize
8cf6aafdad
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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();