You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request
The pdf which will be previewed has many pages and I want to have a scroll bar, so I set 'max-height' to 'pdf-viewer', but it doesn't work. (If I remove max-height, it works).
Bug Report or Feature Request (mark with an
x
)The pdf which will be previewed has many pages and I want to have a scroll bar, so I set 'max-height' to 'pdf-viewer', but it doesn't work. (If I remove max-height, it works).
Any solutions to solve this problem?
Below is my code:
Html
Css
.pdf-viewer {
max-width: 100%;
display: block;
max-height: 550px;
overflow: auto;
}
Ts
pdfSrc: any;
pageNumber = 1;
ngOnInit() {
this.http.get('/api/korcula/GetFileBytes?fileId=704868',
{
responseType: 'arraybuffer'
}).subscribe(res => {
this.pdfSrc = res;
});
}
onClick() {
this.pageNumber = 6;
}
The text was updated successfully, but these errors were encountered: