svg.resize.js
svg.resize.js copied to clipboard
When resize a rect in group ,some thing is wrong
draw = SVG('drawing').size(500,500);
var g = draw.group();
var rect1 = draw.rect(80, 80).attr({ fill: '#f06' })
var rect2 = draw.rect(80, 80).attr({ fill: '#1f6' }).move(100,100)
g.add(rect1);
g.add(rect2);
g.draggable();
rect1.selectize().resize();
rect2.selectize().resize();
when i resize the rect2,the rect1 moved again
Disable draggable
when you start resizing and enable it again when you are done. Thats the simplest solution here I guess