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

How to set width/height config to 100% ? #23

Closed
scoutrul opened this issue Oct 20, 2017 · 2 comments
Closed

How to set width/height config to 100% ? #23

scoutrul opened this issue Oct 20, 2017 · 2 comments
Labels

Comments

@scoutrul
Copy link

subj

I want do this:
width: 100vw
height: 100vh

@danielcaldas
Copy link
Owner

danielcaldas commented Oct 20, 2017

rd3g API is currently only accepting number values on width and height, I would advise you to get innerWidth and innerHeight values from window and pass it in your config.

const config = {
    height: window.innerHeight,
    width: window.innerWidth,
};

Let me know if this works for you.

@scoutrul
Copy link
Author

yes, that is good enaugh!

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

No branches or pull requests

2 participants