mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-21 07:36:05 +00:00
fixed split tab spanner width (fixes #1676)
This commit is contained in:
@@ -16,8 +16,8 @@ export class SplitTabSpannerComponent {
|
|||||||
@HostBinding('class.v') isVertical = true
|
@HostBinding('class.v') isVertical = true
|
||||||
@HostBinding('style.left') cssLeft: string
|
@HostBinding('style.left') cssLeft: string
|
||||||
@HostBinding('style.top') cssTop: string
|
@HostBinding('style.top') cssTop: string
|
||||||
@HostBinding('style.width') cssWidth: string
|
@HostBinding('style.width') cssWidth: string | null
|
||||||
@HostBinding('style.height') cssHeight: string
|
@HostBinding('style.height') cssHeight: string | null
|
||||||
private marginOffset = -5
|
private marginOffset = -5
|
||||||
|
|
||||||
constructor (private element: ElementRef) { }
|
constructor (private element: ElementRef) { }
|
||||||
@@ -82,7 +82,7 @@ export class SplitTabSpannerComponent {
|
|||||||
private setDimensions (x: number, y: number, w: number, h: number) {
|
private setDimensions (x: number, y: number, w: number, h: number) {
|
||||||
this.cssLeft = `${x}%`
|
this.cssLeft = `${x}%`
|
||||||
this.cssTop = `${y}%`
|
this.cssTop = `${y}%`
|
||||||
this.cssWidth = w ? `${w}%` : 'initial'
|
this.cssWidth = w ? `${w}%` : null
|
||||||
this.cssHeight = h ? `${h}%` : 'initial'
|
this.cssHeight = h ? `${h}%` : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user