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

Mobile rendering #16

Open
etenente opened this issue Aug 19, 2019 · 0 comments
Open

Mobile rendering #16

etenente opened this issue Aug 19, 2019 · 0 comments

Comments

@etenente
Copy link

Greetings.

I´m trying to render a responsive component and the results are a little different from the ones I was expecting.

Isn't the option 'windowWidth' created to make rendering independant of the real screen resolution? It doesn't matter what value I set in this option, the result seems always related to the current "window.innerWidth" of the browser.

It's important to say that the component I´m rendering is a card from https://vuematerial.io/.

Here are the options I´m using:

const html2CanvasOptions = {
type: 'dataURL',
scale: 1,
windowWidth: 1362 // or '1362px' , it doesn't seems to change anything
};

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

No branches or pull requests

2 participants