mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
fixed tab focus loss - fixes #2525
This commit is contained in:
@@ -529,7 +529,9 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
if (child instanceof SplitContainer) {
|
if (child instanceof SplitContainer) {
|
||||||
this.layoutInternal(child, childX, childY, childW, childH)
|
this.layoutInternal(child, childX, childY, childW, childH)
|
||||||
} else {
|
} 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('child', true)
|
||||||
element.classList.toggle('maximized', child === this.maximizedTab)
|
element.classList.toggle('maximized', child === this.maximizedTab)
|
||||||
element.classList.toggle('minimized', this.maximizedTab && 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%'
|
element.style.height = '90%'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
offset += sizes[i]
|
offset += sizes[i]
|
||||||
|
|
||||||
if (i !== 0) {
|
if (i !== 0) {
|
||||||
|
Reference in New Issue
Block a user