[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)
This commit is contained in:
parent
2c6ee89080
commit
10be95407a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue