Additional fixes to resolution change, now works correctly when zoomed
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@678 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1179,15 +1179,6 @@ function svg_edit_setup() {
|
||||
populateLayers();
|
||||
|
||||
function changeResolution(x,y) {
|
||||
var new_res = x+'x'+y;
|
||||
var found = false;
|
||||
$('#resolution option').each(function() {
|
||||
if($(this).text() == new_res) {
|
||||
$('#resolution').val(x+'x'+y);
|
||||
found = true;
|
||||
}
|
||||
});
|
||||
if(!found) $('#resolution').val('Custom');
|
||||
var zoom = svgCanvas.getResolution().zoom;
|
||||
setResolution(x * zoom, y * zoom);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user