diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-03-01 16:00:48 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-03-01 16:03:38 +0200 |
| commit | 9afa816644978f2b348c5ceb6a28d8275dba2dee (patch) | |
| tree | 972342f830c0b885e1b47bae95b787b527303a6d /src/client/textanalysis.ui.js | |
| parent | 258dd8018dab09d2e0985e79bcfeeb7d500cd88a (diff) | |
textanalysis.ui.js: adapt to css changes
Diffstat (limited to 'src/client/textanalysis.ui.js')
| -rw-r--r-- | src/client/textanalysis.ui.js | 21 |
1 files changed, 10 insertions, 11 deletions
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); |
