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

Question: How to auto set the height? #19

Open
atifwaqar opened this issue Apr 9, 2017 · 1 comment
Open

Question: How to auto set the height? #19

atifwaqar opened this issue Apr 9, 2017 · 1 comment

Comments

@atifwaqar
Copy link

I want my pdf to automatically fit in a div. and my div height is 100% of my page. when I use the following syntax pdf viewer is half the size of my page:

<pdf-element id="pdf" show-spinner ></pdf-element>

For now, I am using the following syntax, but it looks bad on some computers with different resolution:

<pdf-element height=800 id="pdf" show-spinner ></pdf-element>
@atifwaqar
Copy link
Author

I have tried the following as well, but it does not work

<pdf-element height=100% id="pdf" show-spinner ></pdf-element>

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

1 participant