From 2b57e939715ed27262287b6cbb3320cde08d29cf Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 15 Sep 2009 15:04:00 +0000 Subject: [PATCH] Added fix to increasing zoom from minimum using spinner git-svn-id: http://svg-edit.googlecode.com/svn/trunk@649 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 52ffa176..de5d5d6e 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -289,6 +289,9 @@ function svg_edit_setup() { var changeZoom = function(ctl) { var zoomlevel = ctl.value / 100; var res = svgCanvas.getResolution(); + console.log(res.zoom, zoomlevel); + // Hack to increase properly from 10% + if(res.zoom < zoomlevel && res.zoom == .1) $('#zoom').val(50); setResolution(res.w * zoomlevel, res.h * zoomlevel, true); svgCanvas.setZoom(zoomlevel); }