diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-09-24 07:49:53 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-09-25 07:20:36 +0000 |
| commit | 3023cd24af35bf63f1c962ec51183a20f9ca80e0 (patch) | |
| tree | 95f3f316ac845f0f3301bed09678bfa6634e7fa4 | |
| parent | f328b9ca8ce9ef3a8aaa4ce7c513ba7c01929e62 (diff) | |
[FIX] web: more precise textarea autoresize
Setting 'overflow: hidden' on the (hidden) textarea used to compute
the (visible) textarea height ensures that there is no vertical
scrollbar, which would lead to a not so precise computation of the
height. The bug could be observed in sale.order form view, in the
order line x2many (description field), and had been introduced by
ef46378cd38d.
| -rw-r--r-- | addons/web/static/src/js/core/dom.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index d2fdb41fefc..a61caf480e4 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -114,6 +114,7 @@ var dom = { borderTopWidth: 0, borderBottomWidth: 0, padding: 0, + overflow: 'hidden', }); $fixedTextarea.data("auto_resize", true); |
