jackmoore / autosize

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.
http://www.jacklmoore.com/autosize/
MIT License
5.1k stars 702 forks source link

[6.0.0 regression] Disabled horizontal scrollbar appears when reaching max-height #407

Open andersk opened 1 year ago

andersk commented 1 year ago

When using autosize on a <textarea> with a CSS max-height, after typing enough content to reach the max-height, autosize 6.0.0 and 6.0.1 unexpectedly adds a disabled horizontal scrollbar in addition to the expected vertical scrollbar.

Based on git bisect, 8389fc92f14a1485e2f949941ef4e3db2a222fcd is the first commit with this issue.

This prevents Zulip from upgrading to autosize 6 (zulip/zulip#25087).

Demo

Screenshots from Chromium 114.0.5735.90 on Linux.

muecke87 commented 1 year ago

any chances this will be fixed soon? :)

paparent commented 1 year ago

I didn't upgrade too. In the commit supplied above, before it was setting overflowY to scroll, now it's setting overflow.

aderchox commented 1 year ago

Same issue here

toxpal commented 1 month ago

Just started using autosize and have the same issue. Playing with CSS doesn't help