summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-08-22 12:52:58 +0200
committerGéry Debongnie <ged@odoo.com>2014-08-22 13:18:40 +0200
commit10be95407a96e2bc7457b790213e42f9b0009a07 (patch)
tree045c7295561089356b407e98c743e9c9ed1da7d8 /addons/web_graph
parent2c6ee8908094e062077e8a65329f1b022954ad59 (diff)
[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)
Diffstat (limited to 'addons/web_graph')
-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) {