From 34ee7a2578d43afefaa221ae2a4c9fc60ba71b72 Mon Sep 17 00:00:00 2001 From: Teja Date: Sun, 15 Nov 2015 18:22:29 +0100 Subject: [PATCH] bugfix: fit to working area now uses all the space. --- src/octoprint/plugins/svgtogcode/static/js/working_area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 3c0d93da..24f4d498 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -335,7 +335,7 @@ $(function(){ var tooHigh = svgBB.h > waBB.h; var scale = 1; if(tooWide || tooHigh){ - scale = Math.min(waBB.w / svgBB.w, waBB.h / svgBB.h) - 0.01; // scale minimal smaller to avoid rounding errors + scale = Math.min(waBB.w / svgBB.w, waBB.h / svgBB.h) - 0.0001; // scale minimal smaller to avoid rounding errors } var dx = 0;