From 10be95407a96e2bc7457b790213e42f9b0009a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 22 Aug 2014 12:52:58 +0200 Subject: [FIX] css fix in graph view The field selection menu was not positioned correctly when there was a long list. (was not displayed at the position clicked) --- addons/web_graph/static/src/js/graph_widget.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'addons/web_graph/static/src/js/graph_widget.js') 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) { -- cgit v1.2.3