Skip to content

Commit

Permalink
fix: fix print style
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Aug 20, 2020
1 parent 3850382 commit 03967c8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/gantt/src/gantt-print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03967c8

Please sign in to comment.