Browse Source

Update splitTab.component.ts

Eugene Pankov 6 years ago
parent
commit
f09fb735a7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      terminus-core/src/components/splitTab.component.ts

+ 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()
     }
 }