Fix Issue 186: Actual resolution always shown as selected
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@640 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
11c49d61dd
commit
33cd428ef2
|
@ -616,6 +616,10 @@ function svg_edit_setup() {
|
||||||
var showDocProperties = function(){
|
var showDocProperties = function(){
|
||||||
if (docprops) return;
|
if (docprops) return;
|
||||||
docprops = true;
|
docprops = true;
|
||||||
|
|
||||||
|
var res = svgCanvas.getResolution();
|
||||||
|
$("#resolution").val(res.w+'x'+res.h).attr("selected", "selected");
|
||||||
|
|
||||||
$('#svg_docprops').fadeIn();
|
$('#svg_docprops').fadeIn();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1005,7 +1009,6 @@ function svg_edit_setup() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// svgCanvas.setResolution(x,y);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#rect_rx').SpinButton({ min: 0, max: 1000, step: 1, callback: changeRectRadius });
|
$('#rect_rx').SpinButton({ min: 0, max: 1000, step: 1, callback: changeRectRadius });
|
||||||
|
|
Loading…
Reference in New Issue