Skip to content

Commit

Permalink
Removing high-dpi check because it is not necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Falke-Design authored and Igor-Vladyka committed Dec 27, 2024
1 parent 564177e commit 82cec52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/leaflet.browser.print.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ L.BrowserPrint.Helper = {
var height = Math.floor(size.Height - topbottom);
var width = Math.floor(size.Width - leftright);

size.Width = width * (window.devicePixelRatio || 1) + 'mm';
size.Height = height * (window.devicePixelRatio || 1) + 'mm';
size.Width = width + 'mm';
size.Height = height + 'mm';

return size;
}
Expand Down

0 comments on commit 82cec52

Please sign in to comment.