Skip to content

Commit

Permalink
Fixing Image Crop Issue frg-fossee#157
Browse files Browse the repository at this point in the history
  • Loading branch information
NavonilDas committed Jul 3, 2020
1 parent 869a8de commit c755362
Show file tree
Hide file tree
Showing 6 changed files with 21,434 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ArduinoFrontend/src/app/Libs/Download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Download {
// Return a new Promise
return new Promise((res, _) => {
// Get the client pixel ratio
const pixelRatio = window.devicePixelRatio || 1;
const pixelRatio = 1.25;
// get The Bounding box of the circuit
const gtag = (document.querySelector('#holder > svg > g') as SVGSVGElement).getBBox();
if (gtag.width === 0 || gtag.height === 0) {
Expand Down
Loading

0 comments on commit c755362

Please sign in to comment.