Better behavior for custom resolutions
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@639 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -997,7 +997,12 @@ function svg_edit_setup() {
|
||||
alert('Invalid size. Width or height may not be 0.');
|
||||
return false;
|
||||
}
|
||||
$('#resolution').val(x+'x'+y);
|
||||
var newOption = [x,'x',y].join('');
|
||||
$("#resolution").val(newOption).attr("selected", "selected");
|
||||
if ($("#resolution").val() != newOption) {
|
||||
$('#resolution').append('<option>'+newOption+'</option>');
|
||||
$("#resolution").val(newOption).attr("selected", "selected");
|
||||
}
|
||||
}
|
||||
}
|
||||
// svgCanvas.setResolution(x,y);
|
||||
|
||||
Reference in New Issue
Block a user