fixed split tab index - fixes #4249

This commit is contained in:
Eugene Pankov 2021-08-06 09:07:38 +02:00
parent 7b59ba4b73
commit 426606ba06
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -420,7 +420,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
newContainer.ratios = [1]
target.children.splice(relative ? target.children.indexOf(relative) : -1, 1, newContainer)
target = newContainer
insertIndex = 0
insertIndex = 'tl'.includes(side) ? 0 : 1
}
for (let i = 0; i < target.children.length; i++) {