From e4f32c9adecb51e98cc5afdb90bcbcb7626ea4e3 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 30 Dec 2019 18:24:14 +0100 Subject: [PATCH] fixed split tab spanner width (fixes #1676) --- terminus-core/src/components/splitTabSpanner.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminus-core/src/components/splitTabSpanner.component.ts b/terminus-core/src/components/splitTabSpanner.component.ts index 8319acfe..e0fb7805 100644 --- a/terminus-core/src/components/splitTabSpanner.component.ts +++ b/terminus-core/src/components/splitTabSpanner.component.ts @@ -16,8 +16,8 @@ export class SplitTabSpannerComponent { @HostBinding('class.v') isVertical = true @HostBinding('style.left') cssLeft: string @HostBinding('style.top') cssTop: string - @HostBinding('style.width') cssWidth: string - @HostBinding('style.height') cssHeight: string + @HostBinding('style.width') cssWidth: string | null + @HostBinding('style.height') cssHeight: string | null private marginOffset = -5 constructor (private element: ElementRef) { } @@ -82,7 +82,7 @@ export class SplitTabSpannerComponent { private setDimensions (x: number, y: number, w: number, h: number) { this.cssLeft = `${x}%` this.cssTop = `${y}%` - this.cssWidth = w ? `${w}%` : 'initial' - this.cssHeight = h ? `${h}%` : 'initial' + this.cssWidth = w ? `${w}%` : null + this.cssHeight = h ? `${h}%` : null } }