Better behavior for custom resolutions
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@639 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
78a77cf9d4
commit
11c49d61dd
|
@ -295,8 +295,7 @@
|
||||||
<button id="tool_docprops_cancel">Cancel</button>
|
<button id="tool_docprops_cancel">Cancel</button>
|
||||||
|
|
||||||
<div id="change_resolution">
|
<div id="change_resolution">
|
||||||
<label>Resolution:</label>
|
<select id="resolution" label="Resolution:">
|
||||||
<select id="resolution">
|
|
||||||
<option selected="selected">640x480</option>
|
<option selected="selected">640x480</option>
|
||||||
<option>800x600</option>
|
<option>800x600</option>
|
||||||
<option>1024x768</option>
|
<option>1024x768</option>
|
||||||
|
|
|
@ -997,7 +997,12 @@ function svg_edit_setup() {
|
||||||
alert('Invalid size. Width or height may not be 0.');
|
alert('Invalid size. Width or height may not be 0.');
|
||||||
return false;
|
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);
|
// svgCanvas.setResolution(x,y);
|
||||||
|
|
Loading…
Reference in New Issue