diff --git a/package-lock.json b/package-lock.json index 2048b574..68ffcbb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9696,9 +9696,9 @@ "dev": true }, "html2canvas": { - "version": "1.0.0-rc.5", - "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.0.0-rc.5.tgz", - "integrity": "sha512-DtNqPxJNXPoTajs+lVQzGS1SULRI4GQaROeU5R41xH8acffHukxRh/NBVcTBsfCkJSkLq91rih5TpbEwUP9yWA==", + "version": "1.0.0-rc.7", + "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.0.0-rc.7.tgz", + "integrity": "sha512-yvPNZGejB2KOyKleZspjK/NruXVQuowu8NnV2HYG7gW7ytzl+umffbtUI62v2dCHQLDdsK6HIDtyJZ0W3neerA==", "requires": { "css-line-break": "1.1.1" } diff --git a/package.json b/package.json index c1e9b870..dcf7978f 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@angular/router": "~8.2.14", "@types/es6-promise": "^3.3.0", "date-fns": "^2.14.0", - "html2canvas": "1.0.0-rc.5", + "html2canvas": "1.0.0-rc.7", "rxjs": "~6.4.0", "tslib": "^1.10.0", "zone.js": "~0.9.1" diff --git a/packages/gantt/src/gantt-print.service.ts b/packages/gantt/src/gantt-print.service.ts index 750daacb..8664889b 100644 --- a/packages/gantt/src/gantt-print.service.ts +++ b/packages/gantt/src/gantt-print.service.ts @@ -74,14 +74,18 @@ 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.setAttribute('style', `background: transparent`); - cloneCalendarOverlay.style.background = 'transparent'; + if (cloneLinksOverlay) { + cloneLinksOverlay.setAttribute('style', `height: ${printHeight}px`); + } // setInlineStyles for svg this.setInlineStyles(cloneGanttDom);