Igor-Vladyka / leaflet.browser.print

A leaflet plugin which allows users to print the map directly from the browser
https://igor-vladyka.github.io/leaflet.browser.print/
MIT License
155 stars 76 forks source link

Map ends up on 2 pages. When windows dpi scaling is set to 150% #81

Closed brunnernikolaj closed 4 years ago

brunnernikolaj commented 4 years ago

When trying to print the map on windows with dpi scaling set to 150%, the map will overflow the first page and take up space on the second.

Steps to reproduce the behavior:

  1. Go to windows display settings
  2. Change scale / layout to 150%
  3. try to print a map
  4. See error

Expected behavior The map only takes up one page

Screenshots image

Desktop

Igor-Vladyka commented 4 years ago

Hi.

That is an interesting one. We cant control this behavior but I will take a look what can be done.

Regards, Igor

Igor-Vladyka commented 4 years ago

Hi there,

I have adjusted calculations for printing. Please take a look and let me know if any.

Regards, Igor

promisethedeveloper commented 1 year ago

Please what is the solution to this problem? As I am experiencing the same in my Angular application.