fixed tab focus loss - fixes #2525

This commit is contained in:
Eugene Pankov
2020-05-06 16:21:48 +02:00
parent 9e2d070ed4
commit 3a76e0bb2e

View File

@@ -529,7 +529,9 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
if (child instanceof SplitContainer) {
this.layoutInternal(child, childX, childY, childW, childH)
} else {
const element = this.viewRefs.get(child)!.rootNodes[0]
const viewRef = this.viewRefs.get(child)
if (viewRef) {
const element = viewRef.rootNodes[0]
element.classList.toggle('child', true)
element.classList.toggle('maximized', child === this.maximizedTab)
element.classList.toggle('minimized', this.maximizedTab && child !== this.maximizedTab)
@@ -546,6 +548,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
element.style.height = '90%'
}
}
}
offset += sizes[i]
if (i !== 0) {