From 02b21579be6f5ba274add28c491afe04fb421a7c Mon Sep 17 00:00:00 2001 From: zhangwen <1062680993@qq.com> Date: Tue, 1 Sep 2020 14:34:54 +0800 Subject: [PATCH] fix: just hide today line and support safari browser --- .../calendar/calendar.component.html | 5 ++--- .../components/calendar/calendar.component.ts | 18 +++++++++++------- .../src/components/links/links.component.html | 2 +- .../src/components/links/links.component.scss | 2 +- packages/gantt/src/gantt-print.service.ts | 1 + 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/packages/gantt/src/components/calendar/calendar.component.html b/packages/gantt/src/components/calendar/calendar.component.html index 0992cbe9..8a64a946 100644 --- a/packages/gantt/src/components/calendar/calendar.component.html +++ b/packages/gantt/src/components/calendar/calendar.component.html @@ -1,6 +1,6 @@ -
+
- +
@@ -11,7 +11,6 @@ + diff --git a/packages/gantt/src/components/links/links.component.scss b/packages/gantt/src/components/links/links.component.scss index 8b488694..ff715a93 100644 --- a/packages/gantt/src/components/links/links.component.scss +++ b/packages/gantt/src/components/links/links.component.scss @@ -6,7 +6,7 @@ height: 100%; svg { overflow: visible; - z-index: 1; + z-index: 2; position: absolute; } } diff --git a/packages/gantt/src/gantt-print.service.ts b/packages/gantt/src/gantt-print.service.ts index fb077666..b453898e 100644 --- a/packages/gantt/src/gantt-print.service.ts +++ b/packages/gantt/src/gantt-print.service.ts @@ -86,6 +86,7 @@ export class GanttPrintService { cloneCalendarOverlay.setAttribute('style', `background: transparent`); if (cloneLinksOverlay) { + cloneLinksOverlay.setAttribute('height', `${printHeight}`); cloneLinksOverlay.setAttribute('style', `height: ${printHeight}px`); }