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

Print in 'Current Size' when use vh instead px in the map div #132

Open
EdgarCsA opened this issue Oct 28, 2022 · 1 comment
Open

Print in 'Current Size' when use vh instead px in the map div #132

EdgarCsA opened this issue Oct 28, 2022 · 1 comment

Comments

@EdgarCsA
Copy link

EdgarCsA commented Oct 28, 2022

When using "vh" instead "px" in the div height, the Current mode does not work well.

In order to solution, I changed the code

domtoimage.toPng(plugin.mapContainer, {
        width: parseInt(widthForExport),
        height: parseInt(plugin.mapContainer.clientHeight)
      })
@GlenLamb
Copy link

would you be able to give me some info on how i can implement this fix in my version, I am getting the problem referenced here:
#76

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