DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.18k stars 1.91k forks source link

Limited Scroll When pageFitPolicy Set to WIDTH or BOTH #966

Open Yussuf-Dev opened 3 years ago

Yussuf-Dev commented 3 years ago

Thank you for the wonderful work and contributions from the community. I'm facing a problem and hit rock bottom. With ".pageFitPolicy(FitPolicy.WIDTH)" or " .pageFitPolicy(FitPolicy.BOTH)" when I zoom the PDF the scroll is limited, I can't see the header / what's on top or footer / what's at the bottom. I only see the center of the page regardless of device orientation.

If anyone can shine a light or point me to the right direction I'd be grateful.

pdf-viewer:3.2.0-beta.1

.enableSwipe(true) .swipeHorizontal(true) .enableDoubletap(true) .defaultPage(pag) .enableAnnotationRendering(false) .password(null) .enableAntialiasing(true) .spacing(0) .autoSpacing(true) .pageFitPolicy(FitPolicy.WIDTH) .fitEachPage(true) .pageSnap(true) .pageFling(true) .scrollHandle(new DefaultScrollHandle(this)) .load();

datnguyencr commented 3 years ago

same issue. I think fitEachPage(true) is the root cause here not sure why

tmdgh1592 commented 1 year ago

Did you solve this problem? I'm suffering from the same problems now.. :(

rodrigorafaeldamaceno commented 1 year ago

same problem here, do you have intention to maintained this package?