Merged PR 1184: #2992 TK PDF Viewer kein horizontales Scrollen von Hochformat Dokumenten auf...

#2992 TK PDF Viewer kein horizontales Scrollen von Hochformat Dokumenten auf dem iPad

Related work items: #2992
This commit is contained in:
Andreas Schickinger
2022-04-19 13:46:41 +00:00
committed by Lorenz Hilpert
parent 25d5f183c5
commit 810a7d0a8f
2 changed files with 2 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
[render-text]="true"
[(page)]="page"
(after-load-complete)="callBackFn($event)"
[fit-to-page]="!isSmallScreen"
[fit-to-page]="true"
></pdf-viewer>
<button (click)="print()" class="cta-print" type="button">

View File

@@ -1,4 +1,3 @@
import { BreakpointObserver } from '@angular/cdk/layout';
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { DomainPrinterService } from '@domain/printer';
import { DomainTaskCalendarService } from '@domain/task-calendar';
@@ -23,15 +22,12 @@ export class PdfViewerModalComponent {
totalPages = 1;
isSmallScreen = this._breakpointObserver.isMatched('(max-width: 900px)');
constructor(
private modalRef: UiModalRef<any, PdfViewerModalData>,
private cdr: ChangeDetectorRef,
private uiModal: UiModalService,
private taskCalendarService: DomainTaskCalendarService,
private domainPrinterService: DomainPrinterService,
private _breakpointObserver: BreakpointObserver
private domainPrinterService: DomainPrinterService
) {
this.objectURL = URL.createObjectURL(this.modalRef.data.content);
this.file = this.modalRef.data.file;