Skip to content

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

Open
@EdgarCsA

Description

@EdgarCsA

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions