[FIX] web: prevent textarea scrollbar on Firefox

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.

Task: none
PR: none
This commit is contained in:
Sébastien Theys
2018-08-22 15:51:07 +02:00
parent 1f35fc26be
commit e86d723c3f
+8
View File
@@ -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);