[英]I can't see scroll bar to left and right until I scroll all the way down to the bottom of the content
I'm trying to add scroll controls to my pdf viewer. 我正在尝试向我的pdf查看器添加滚动控件。 Scroll up and down works fine but I can't see the bar for scrolling left and right until I scroll to the bottom of the pdf file. 向上和向下滚动工作正常但我看不到向左和向右滚动的栏,直到我滚动到pdf文件的底部。 In my css I have: 在我的CSS中我有:
.pdf-content {
overflow-y: auto;
border: 1px solid #EEE;
padding: 0px;
margin: 0px;
}
In my html, I have: 在我的HTML中,我有:
<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>
Your scroll bars are on two different elements. 滚动条位于两个不同的元素上。 Try changing overflow-y: auto
to just overflow: auto
so that the scroll bars are on the same element. 尝试将overflow-y: auto
更改为overflow: auto
以便滚动条位于同一元素上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.