[MERGE][FIX] Position of m2o autocompletion on too small and non scrollable screens

bzr revid: rim@openerp.com-20140429112237-jdnd04gr1t2qot5r
This commit is contained in:
Kunal Chavda (OpenERP) 2014-04-29 13:22:37 +02:00 committed by Richard Mathot (OpenERP)
commit 6f51331d52
1 changed files with 2 additions and 0 deletions

View File

@ -3621,6 +3621,8 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
minLength: 0,
delay: 250
});
// set position for list of suggestions box
this.$input.autocomplete( "option", "position", { my : "left top", at: "left bottom" } );
this.$input.autocomplete("widget").openerpClass();
// used to correct a bug when selecting an element by pushing 'enter' in an editable list
this.$input.keyup(function(e) {