Gisellameloni / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Path selection grip is left on the screen #1257

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create path using path tool. Path should use curves.
2. Click Select tool.
3. Drag the path.

What is the expected output? What do you see instead?

With all grip handles that were used during the drawing disappear, and path get 
dragged.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)

All.

In what version of SVG-edit does the problem occur? (Latest trunk, 2.7.1,
etc)

Latest trunk.

Please provide any additional information below.

I've found that the problem is in the jquery-svg.js.
Code tries to hide all grip handles with statement like this:

$(...).find("*").attr('display', 'none');

Note that JQuery object that's passed into attr() refers to many DOM elements.

Unfortunately jquery-svg.js overrides the jQuery.fn.attr() and returns 
immediately after setting the attribute for the first element only (line 66).

Original issue reported on code.google.com by vladimir...@gmail.com on 5 Jan 2015 at 2:41