diff --git a/packages/gantt/src/gantt-print.service.ts b/packages/gantt/src/gantt-print.service.ts index 272cafe4..750daacb 100644 --- a/packages/gantt/src/gantt-print.service.ts +++ b/packages/gantt/src/gantt-print.service.ts @@ -74,19 +74,14 @@ export class GanttPrintService { const ganttClass = root.className; const cloneGanttDom = cloneDocument.querySelector(`.${ganttClass.replace(/\s+/g, '.')}`) as HTMLElement; const cloneCalendarOverlay = cloneDocument.querySelector('.gantt-calendar-overlay-main') as HTMLElement; - const cloneLinksOverlay = cloneDocument.querySelector('.gantt-links-overlay-main') as HTMLElement; // change targetDom width cloneGanttDom.style.width = `${printWidth}px`; cloneGanttDom.style.height = `${printHeight}px`; cloneGanttDom.style.overflow = `unset`; cloneCalendarOverlay.setAttribute('height', `${printHeight}`); - cloneCalendarOverlay.style.height = `${printHeight}px`; - cloneCalendarOverlay.style.background = 'transparent'; - if (cloneLinksOverlay) { - cloneLinksOverlay.style.height = `${printHeight}px`; - } + cloneCalendarOverlay.style.background = 'transparent'; // setInlineStyles for svg this.setInlineStyles(cloneGanttDom);