summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/core')
-rw-r--r--addons/web/static/src/js/core/dom.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js
index 060bb141eff..115cc5fcf0c 100644
--- a/addons/web/static/src/js/core/dom.js
+++ b/addons/web/static/src/js/core/dom.js
@@ -115,6 +115,14 @@ return {
}).css(direction, -10000);
$fixedTextarea.data("auto_resize", true);
+ // The following line is necessary to prevent the scrollbar to appear
+ // on the textarea on Firefox when adding a new line if the current line
+ // has just enough characters to completely fill the line.
+ // This fix should be fine since we compute the height depending on the
+ // content, there should never be an overflow.
+ // TODO ideally understand why and fix this another way if possible.
+ $textarea.css({'overflow-y': 'hidden'});
+
resize();
removeVerticalResize();
$textarea.data("auto_resize", true);