diff --git a/dist/img/iD-sprite.svg b/dist/img/iD-sprite.svg index 3dfd2ea0b..6937fb43a 100644 --- a/dist/img/iD-sprite.svg +++ b/dist/img/iD-sprite.svg @@ -130,52 +130,52 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1076,7 +1076,7 @@ - + diff --git a/js/id/ui/preset.js b/js/id/ui/preset.js index 0fe601421..a863244cd 100644 --- a/js/id/ui/preset.js +++ b/js/id/ui/preset.js @@ -113,10 +113,7 @@ iD.ui.preset = function(context) { wrap.append('button') .attr('class', 'remove-icon') - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); wrap.append('button') .attr('class', 'modified-icon') diff --git a/js/id/ui/preset/localized.js b/js/id/ui/preset/localized.js index bebc0dfec..2f0694285 100644 --- a/js/id/ui/preset/localized.js +++ b/js/id/ui/preset/localized.js @@ -141,10 +141,7 @@ iD.ui.preset.localized = function(field, context) { .style('max-height','0px') .remove(); }) - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); wrap.append('input') .attr('class', 'localized-lang') diff --git a/js/id/ui/radial_menu.js b/js/id/ui/radial_menu.js index 30d5cb080..72914b30c 100644 --- a/js/id/ui/radial_menu.js +++ b/js/id/ui/radial_menu.js @@ -60,6 +60,7 @@ iD.ui.RadialMenu = function(context, operations) { .on('mouseout', mouseout); button.append('use') + .attr('transform', 'translate(-10,-10)') .attr('width', '20') .attr('height', '20') .attr('xlink:href', function(d) { return '#operation-' + d.id; }); diff --git a/js/id/ui/raw_member_editor.js b/js/id/ui/raw_member_editor.js index d0a660c80..f2da99382 100644 --- a/js/id/ui/raw_member_editor.js +++ b/js/id/ui/raw_member_editor.js @@ -101,10 +101,7 @@ iD.ui.RawMemberEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMember) - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); $items.exit() .remove(); diff --git a/js/id/ui/raw_membership_editor.js b/js/id/ui/raw_membership_editor.js index ecb715625..a1a57d27d 100644 --- a/js/id/ui/raw_membership_editor.js +++ b/js/id/ui/raw_membership_editor.js @@ -135,10 +135,7 @@ iD.ui.RawMembershipEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMembership) - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); $items.exit() .remove(); @@ -173,10 +170,7 @@ iD.ui.RawMembershipEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMembership) - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); } else { $list.selectAll('.member-row-new') diff --git a/js/id/ui/raw_tag_editor.js b/js/id/ui/raw_tag_editor.js index 725e983b3..e4b760e8f 100644 --- a/js/id/ui/raw_tag_editor.js +++ b/js/id/ui/raw_tag_editor.js @@ -72,10 +72,7 @@ iD.ui.RawTagEditor = function(context) { $enter.append('button') .attr('tabindex', -1) .attr('class', 'remove minor') - .call(iD.svg.Icon('#operation-delete')) - .select('use') - .attr('x', 10) - .attr('y', 10); + .call(iD.svg.Icon('#operation-delete')); if (context.taginfo()) { $enter.each(bindTypeahead); diff --git a/svg/iD-sprite.json b/svg/iD-sprite.json index 8e2dc9139..ec3eec18e 100644 --- a/svg/iD-sprite.json +++ b/svg/iD-sprite.json @@ -248,19 +248,19 @@ "preset-icon-frame": { "viewBox": "340 320 45 45" }, - "operation-delete": { "viewBox": "200 380 20 20", "x": "-10", "y": "-10" }, - "operation-circularize": { "viewBox": "220 380 20 20", "x": "-10", "y": "-10" }, - "operation-straighten": { "viewBox": "240 380 20 20", "x": "-10", "y": "-10" }, - "operation-split": { "viewBox": "260 380 20 20", "x": "-10", "y": "-10" }, - "operation-disconnect": { "viewBox": "280 380 20 20", "x": "-10", "y": "-10" }, - "operation-reverse": { "viewBox": "300 380 20 20", "x": "-10", "y": "-10" }, - "operation-move": { "viewBox": "320 380 20 20", "x": "-10", "y": "-10" }, - "operation-merge": { "viewBox": "340 380 20 20", "x": "-10", "y": "-10" }, - "operation-orthogonalize": { "viewBox": "360 380 20 20", "x": "-10", "y": "-10" }, - "operation-rotate": { "viewBox": "380 380 20 20", "x": "-10", "y": "-10" }, - "operation-simplify": { "viewBox": "400 380 20 20", "x": "-10", "y": "-10" }, - "operation-smooth": { "viewBox": "420 380 20 20", "x": "-10", "y": "-10" }, - "operation-continue": { "viewBox": "440 380 20 20", "x": "-10", "y": "-10" }, + "operation-delete": { "viewBox": "200 380 20 20" }, + "operation-circularize": { "viewBox": "220 380 20 20" }, + "operation-straighten": { "viewBox": "240 380 20 20" }, + "operation-split": { "viewBox": "260 380 20 20" }, + "operation-disconnect": { "viewBox": "280 380 20 20" }, + "operation-reverse": { "viewBox": "300 380 20 20" }, + "operation-move": { "viewBox": "320 380 20 20" }, + "operation-merge": { "viewBox": "340 380 20 20" }, + "operation-orthogonalize": { "viewBox": "360 380 20 20" }, + "operation-rotate": { "viewBox": "380 380 20 20" }, + "operation-simplify": { "viewBox": "400 380 20 20" }, + "operation-smooth": { "viewBox": "420 380 20 20" }, + "operation-continue": { "viewBox": "440 380 20 20" }, "operation-delete-shape": { "fill": "inherit" }, "operation-circularize-shape": { "fill": "inherit" }, diff --git a/svg/iD-sprite.src.idraw b/svg/iD-sprite.src.idraw index e2ced4201..5383b6c02 100644 Binary files a/svg/iD-sprite.src.idraw and b/svg/iD-sprite.src.idraw differ diff --git a/svg/iD-sprite.src.svg b/svg/iD-sprite.src.svg index 76ce7911c..1132d2fe9 100644 --- a/svg/iD-sprite.src.svg +++ b/svg/iD-sprite.src.svg @@ -1076,7 +1076,7 @@ - +