summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph_widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_graph/static/src/js/graph_widget.js')
-rw-r--r--addons/web_graph/static/src/js/graph_widget.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js
index 483c2199747..f0e07e06e6a 100644
--- a/addons/web_graph/static/src/js/graph_widget.js
+++ b/addons/web_graph/static/src/js/graph_widget.js
@@ -352,12 +352,11 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({
}
this.dropdown = $(QWeb.render('field_selection', {fields:fields, header_id:id}));
$(event.target).after(this.dropdown);
- this.dropdown.css({position:'absolute',
- left:event.originalEvent.layerX,
- top:event.originalEvent.layerY});
- this.$('.field-selection').next('.dropdown-menu').first().toggle();
-
-
+ this.dropdown.css({
+ position:'absolute',
+ left:event.originalEvent.layerX,
+ });
+ this.$('.field-selection').next('.dropdown-menu').first().toggle();
},
field_selection: function (event) {