summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-01-08 08:44:42 +0000
committerwan <wan@odoo.com>2020-01-08 14:11:45 +0000
commitc1e3439462969a2424d459e05c558258cd81d029 (patch)
tree1c423cdc11a971498ad6ccbeccae4d31f56ca4e3 /addons/web/static/src/js
parentddfa8768cc9aa0685d8908741936093e5aa335ea (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')
-rw-r--r--addons/web/static/src/js/core/dom.js7
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