From 9afa816644978f2b348c5ceb6a28d8275dba2dee Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 1 Mar 2015 16:00:48 +0200 Subject: textanalysis.ui.js: adapt to css changes --- src/client/textanalysis.ui.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/client/textanalysis.ui.js') diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index be84398e..5dc1da12 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -21,11 +21,11 @@ function get_svg__body_position(node_id) } var typeselection = function TypeSelectionDialog() { - var e = $('.typeselection'), - e_intro = e.find('#intro'), - e_label = e.find('#chosentypelabel'), - e_name = e.find('#chosentypename'), - e_desc = e.find('#chosentypedesc'), + var e = $('.type_selection'), + e_intro = e.find('#type_selection__intro'), + e_label = e.find('#type_selection__chosen_type_label'), + e_name = e.find('#type_selection__chosen_type_name'), + e_desc = e.find('#type_selection__chosen_type_desc'), typeselection = {}; typeselection.analysisNodeStart = function(node_id) { @@ -38,12 +38,11 @@ var typeselection = function TypeSelectionDialog() { node_location; node_location = get_svg__body_position(node_id); - x = node_location.x; - y = node_location.y + 10; - e.css({ - left: x, - top: y, - }); + x = node_location.x - 20; // subtract average node size + y = node_location.y + 25; + e.css({ left: x, + top: y, + }); } typeselection.show = function(node_id) { set_position(node_id); -- cgit v1.3.1