Fixed bug on changing heights with percentages
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1382 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
13003a3de2
commit
b071bd91b5
|
@ -979,7 +979,7 @@ function BatchCommand(text) {
|
|||
|
||||
if($.inArray(attr, w_attrs) !== -1) {
|
||||
return num * res.w;
|
||||
} else if($.inArray(attr, w_attrs) !== -1) {
|
||||
} else if($.inArray(attr, h_attrs) !== -1) {
|
||||
return num * res.h;
|
||||
} else {
|
||||
return num * Math.sqrt((res.w*res.w) + (res.h*res.h))/Math.sqrt(2);
|
||||
|
@ -1006,7 +1006,7 @@ function BatchCommand(text) {
|
|||
val *= 100;
|
||||
if($.inArray(attr, w_attrs) !== -1) {
|
||||
val = val / res.w;
|
||||
} else if($.inArray(attr, w_attrs) !== -1) {
|
||||
} else if($.inArray(attr, h_attrs) !== -1) {
|
||||
val = val / res.h;
|
||||
} else {
|
||||
return val / Math.sqrt((res.w*res.w) + (res.h*res.h))/Math.sqrt(2);
|
||||
|
|
Loading…
Reference in New Issue