Ng2-pdf-viewer: 2.0.1 no more scrollbar while zooming

Created on 2 Oct 2017  路  4Comments  路  Source: VadimDez/ng2-pdf-viewer

<mat-card-content style="width:1000px;height:700px;"> <pdf-viewer [src]="pdfSrc" [page]="page" [rotation]="0" [zoom]="**1.5**" [original-size]="false" [show-all]="false" style="display:block;"></pdf-viewer> </mat-card-content>

with the new version scrollbars doesn't appear and the pdf-viewer is now bigger than the area wich contain it

bug

Most helpful comment

@Gianlu82b19 you can add scroll bars by css. Set overflow-y:scroll for vertical scrollbar and overflow-x:scroll; for horizontal scroll bar

All 4 comments

@Gianlu82b19 you can add scroll bars by css. Set overflow-y:scroll for vertical scrollbar and overflow-x:scroll; for horizontal scroll bar

Thanks it works. For some reason I had no problem in the in the older version (1.2.7)

.pdfViewer {
max-height: 700px; /* change height value */
overflow-y: scroll;
}

@b4z81 don't seem to do the trick. the viewer still display the full pdf page height

Was this page helpful?
0 / 5 - 0 ratings