Skip to content

Commit

Permalink
fix: bump html2canvas 1.0.0-rc.7
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Aug 20, 2020
1 parent 6142b6e commit 52327b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion packages/gantt/src/gantt-print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52327b4

Please sign in to comment.