Closed jhunexjun closed 3 years ago
@jhunexjun Autosize is restricted to sizes based on pixels (computations based on getComputedStyle, which returns pixels), instead of rows. If you knew roughly the pixel-size of the row you could modify the Autosize source to add that extra amount. Here's an example of one place you could do it:
In this file, on like 87, you could add the following to increase the height by 20 pixels:
heightOffset += 20;
But this is visually no different than adding 20 pixels to the bottom padding of the textarea though CSS, which is why I didn't feel the need to provide a built-in option. You have more flexibility with CSS, allowing you to use units like em
or calc.
Thank you for giving me an immediate and precise answer.
Is it possible to auto adjust but plus a certain non-negative integer number for the row. So it will adjust + additional row if it wants to.