From c55b48924b50f49dd9be2ec16f8cd577a10d8e60 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 21 Jan 2015 11:09:11 +0200 Subject: client/view/graph_view: add debugging helper to show diffs --- src/client/rz_core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/rz_core.js') diff --git a/src/client/rz_core.js b/src/client/rz_core.js index 626e29da..7e1079a6 100644 --- a/src/client/rz_core.js +++ b/src/client/rz_core.js @@ -129,7 +129,7 @@ var svgInput = (function() { * @param e visual node element * @param n node model object */ - function enable(e, n) { + function enable(e, n, x) { var oldname = n.name, svg_input = createOrGetSvgInput(), fo = createOrGetSvgInputFO(); @@ -144,7 +144,7 @@ var svgInput = (function() { fo.attr('y', -$(e).height() / 2 - 3); // XXX This minus 3 is only kinda ok. fo.attr('class', 'svg-input-fo-link'); } else { - fo.attr('x', svg_input_fo_node_x); + fo.attr('x', x); fo.attr('y', svg_input_fo_node_y); fo.attr('transform', null); fo.attr('class', 'svg-input-fo-node'); -- cgit v1.3.1