Skip to content

Mobile rendering #16

Open
Open
@etenente

Description

@etenente

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
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions