diff options
| author | wan <wan@odoo.com> | 2020-01-08 08:44:42 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2020-01-08 14:11:45 +0000 |
| commit | c1e3439462969a2424d459e05c558258cd81d029 (patch) | |
| tree | 1c423cdc11a971498ad6ccbeccae4d31f56ca4e3 /addons/web/static/src/js/core/dom.js | |
| parent | ddfa8768cc9aa0685d8908741936093e5aa335ea (diff) | |
[REV] web: remove absolute position on autoresize
Reversal of ef46378cd38d6cb361f1b867a3009f3bbe3bd7c1
The bug we tried to fix with the reverted commit was fixed by 3023cd24af35bf63f1c962ec51183a20f9ca80e0
but it was causing other issues, like the text field translate button
badly positionned
closes odoo/odoo#42953
X-original-commit: d98dde0704f04e1e929bc689fe00814142a9cd40
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/core/dom.js')
| -rw-r--r-- | addons/web/static/src/js/core/dom.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index a61caf480e4..19c173a9d2c 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -108,14 +108,17 @@ var dom = { class: $textarea[0].className, }); + var direction = _t.database.parameters.direction === 'rtl' ? 'right' : 'left'; $fixedTextarea.css({ + position: 'absolute', opacity: 0, - height: 0, + height: 10, borderTopWidth: 0, borderBottomWidth: 0, padding: 0, overflow: 'hidden', - }); + top: -10000, + }).css(direction, -10000); $fixedTextarea.data("auto_resize", true); // The following line is necessary to prevent the scrollbar to appear |
