I want to implement scroll controls in my pdf viewer. Although scrolling up and down is working well, I am facing an issue where the horizontal scroll bar does not appear until I reach the bottom of the PDF file. Below is the CSS code I am using:
.pdf-content {
overflow-y: auto;
border: 1px solid #EEE;
padding: 0px;
margin: 0px;
}
Here is the HTML code snippet:
<div class="pdf-content" [style.width]="imageWidth" [style.height]="imageHeight">
<pdf-viewer *ngIf="fileUrl" style="display: block;"
[src]="fileUrl"
[show-all]="false"
[original-size]="false"
[rotation]="rotation"
[page]="page"
[zoom]="zooming"
(after-load-complete)="callBackFn($event)">
</pdf-viewer>
<md-spinner *ngIf="loadingPdf && fileUrl" class="center"></md-spinner>
</div>