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

Loader is stuck when upgrade to newest version #863

Closed
gabayarden opened this issue Feb 6, 2022 · 6 comments
Closed

Loader is stuck when upgrade to newest version #863

gabayarden opened this issue Feb 6, 2022 · 6 comments
Milestone

Comments

@gabayarden
Copy link

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

I used version 6.4.0 until now with angular 13.1.0 and everything worked fine.
I now upgraded ng2-pdf-viewer into newest version (7.0.2) and I'm facing an issue that the loader is not stopping to spin.
I tried to use the demo pdf from npmjs but is is happed there as well.
I don't see any error on console, and the "after-load-complete" event is indeed fired but still it looks like it is loading.

SS:
image
image

@anddam
Copy link

anddam commented Feb 16, 2022

Possible duplicate of #846.

@VadimDez
Copy link
Owner

@gabayarden could you test if new version 8.0.0 fixes your issue?

@anddam
Copy link

anddam commented Feb 20, 2022

I did a test setting up a new project with node 16, angular ~13 and new ng2-pdf-viewer 8.0.0 and I can confirm it works now.

If you have a chance bump the homepage stackblitz's package.json.

Thank you for the fix.

@VadimDez VadimDez added this to the 8.0.0 milestone Feb 20, 2022
@VadimDez
Copy link
Owner

Fixed by version 8.0.0

@onedotover
Copy link

I was having this issue in Angular 12 and 13 with version 7 and 8. Setting style="width: ##px, height: ##px" on the pdf-viewer component fixed the issue for me. Is it required to have the width and height set?

@VadimDez
Copy link
Owner

Yes, since version 7.0.0, container should have width and height set, see https://github.com/VadimDez/ng2-pdf-viewer/releases/tag/7.0.0

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

4 participants