bugfix: fit to working area now uses all the space.
This commit is contained in:
parent
f518af6bd6
commit
34ee7a2578
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue