Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When resize a rect in group ,some thing is wrong #30

Open
allen3371 opened this issue May 6, 2017 · 1 comment
Open

When resize a rect in group ,some thing is wrong #30

allen3371 opened this issue May 6, 2017 · 1 comment

Comments

@allen3371
Copy link

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

@Fuzzyma
Copy link
Member

Fuzzyma commented Jun 26, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants