Ng2-pdf-viewer: Autosize not working

Created on 8 Nov 2017  路  2Comments  路  Source: VadimDez/ng2-pdf-viewer

See the plunker on a small screen. The pdf does not resize and requires scroling

https://plnkr.co/edit/Lxyk47QzkS2PIXc5CmhQ?p=preview

Most helpful comment

You have to set [original-size]="false" and set style="display: block;".
Value of [original-size] is true by default and therefore adding just [autoresize]="true" won't work.
I will add this to README.md, thanks for reporting the issue.

Here's plunker:
https://plnkr.co/edit/6t1wFvQY1Qe3XMUAwOEW?p=preview

All 2 comments

You have to set [original-size]="false" and set style="display: block;".
Value of [original-size] is true by default and therefore adding just [autoresize]="true" won't work.
I will add this to README.md, thanks for reporting the issue.

Here's plunker:
https://plnkr.co/edit/6t1wFvQY1Qe3XMUAwOEW?p=preview

Thanks for saving my time :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShayShaked picture ShayShaked  路  5Comments

viktorhajer picture viktorhajer  路  7Comments

UlricW picture UlricW  路  3Comments

asadullazadeh picture asadullazadeh  路  4Comments

jgrant95 picture jgrant95  路  6Comments