diff options
| author | Siddarth Gajjar <sga@odoo.com> | 2020-10-16 11:58:12 +0000 |
|---|---|---|
| committer | Siddarth Gajjar <sga@odoo.com> | 2020-12-10 08:41:35 +0000 |
| commit | d44339190ba90c3a3564cc30b78477a1724efaee (patch) | |
| tree | 187eda621a41c06616677d269ec8996e202a1493 /addons/website/static/src/js/editor | |
| parent | 90a178da9f535a7aad59033d697323dc32623b8b (diff) | |
[IMP] website: improve autocomplete dropdown UI
- Before this commit, Autocomplete dropdown ui is not
compatible with existing editor ui.
- After this, Autocomplete dropdown UI for url and GMAP imrpoved.
closes odoo/odoo#60735
Taskid: 2352870
Closes: https://github.com/odoo/odoo/pull/60735
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/js/editor')
| -rw-r--r-- | addons/website/static/src/js/editor/snippets.options.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 9b2940fcdf0..e6e075e1309 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -39,7 +39,15 @@ const UrlPickerUserValueWidget = InputUserValueWidget.extend({ this.containerEl.appendChild(linkButton); this.el.classList.add('o_we_large_input'); this.inputEl.classList.add('text-left'); - wUtils.autocompleteWithPages(this, $(this.inputEl)); + const options = { + position: { + collision: 'flip fit', + }, + classes: { + "ui-autocomplete": 'o_website_ui_autocomplete' + }, + } + wUtils.autocompleteWithPages(this, $(this.inputEl), options); }, //-------------------------------------------------------------------------- |
