svg.resize.js icon indicating copy to clipboard operation
svg.resize.js copied to clipboard

When resize a rect in group ,some thing is wrong

Open allen3371 opened this issue 7 years ago • 1 comments

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 b

allen3371 avatar May 06 '17 15:05 allen3371

Disable draggable when you start resizing and enable it again when you are done. Thats the simplest solution here I guess

Fuzzyma avatar Jun 26 '17 08:06 Fuzzyma