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

PDF is drawn behind the container #43

Closed
chamara9076 opened this issue Jan 5, 2017 · 1 comment
Closed

PDF is drawn behind the container #43

chamara9076 opened this issue Jan 5, 2017 · 1 comment
Milestone

Comments

@chamara9076
Copy link

chamara9076 commented Jan 5, 2017

I updated ng2-pdf-viewer to 0.1.5. After that update the pdf is drawn behind the container. I inspected the HTML using Google Chrome developer tools. Then I noticed that the z-index of the canvas (pdf-viewer -> div -> div -> canvas) is -1. When I removed that style it works properly. The canvas looks like follows.

height="684" width="913" style="position: absolute; top: 0px; left: 0px; z-index: -1;"

This is my template code.
<pdf-viewer
*ngIf="(getCurrentDocumentType() === 'PDF' && isPreviewAvailable)"
[src]="data"
[page]="currentPage"
[render-text]="true"
[zoom]="zoom"
[original-size]="false"
[show-all]="false"
[after-load-complete]="callBackFn">

Please provide me a solution for this. Thank you.

@chamara9076
Copy link
Author

#35
this issue is related with my one. Problem solves when I set [render-text]=false. But need a fix for this.

Thank you

ghetolay added a commit to ghetolay/ng2-pdf-viewer that referenced this issue Jan 8, 2017
VadimDez added a commit that referenced this issue Jan 10, 2017
Create stacking context. fix #39 #43
@VadimDez VadimDez added this to the 0.1.6 milestone Jan 10, 2017
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