From 3023cd24af35bf63f1c962ec51183a20f9ca80e0 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 24 Sep 2019 07:49:53 +0000 Subject: [PATCH] [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. --- addons/web/static/src/js/core/dom.js | 1 + 1 file changed, 1 insertion(+) 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);