Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[show-all]="true", [stick-to-page]="true", [page]="boundValue" does not work if I set 'max-height' to 'pdf-viewer' #360

Closed
jiangyh1024 opened this issue Aug 14, 2018 · 1 comment
Milestone

Comments

@jiangyh1024
Copy link

jiangyh1024 commented Aug 14, 2018

Bug Report or Feature Request (mark with an x)
- [ ] 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).

Any solutions to solve this problem?

Below is my code:
Html

page

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;
}

@VadimDez VadimDez added this to the 6.0.0 milestone Oct 15, 2019
@VadimDez
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants