Przeglądaj źródła

Update splitTab.component.ts

Eugene Pankov 6 lat temu
rodzic
commit
f09fb735a7

+ 4 - 0
terminus-core/src/components/splitTab.component.ts

@@ -564,6 +564,10 @@ export class SplitTabComponent extends BaseTabComponent implements OnInit, OnDes
                 }
             }
         }
+        while (root.ratios.length < root.children.length) {
+            root.ratios.push(1)
+        }
+        root.normalize()
     }
 }