You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logical integer border widths may translate to fractional physical pixel widths due to DPI scaling. Browsers try to mitigate this by rounding the border width to an integer number of physical pixels. This means the following calculation is incorrect:
🐛 Bug report
Logical integer border widths may translate to fractional physical pixel widths due to DPI scaling. Browsers try to mitigate this by rounding the border width to an integer number of physical pixels. This means the following calculation is incorrect:
This results in unwanted scrollbars on the textarea, because it's 1 pixel too short.
💥 Steps to reproduce
Use the auto-resizing textarea on a high-DPI display in Firefox.
CodeSandbox reproduction: https://www.chakra-ui.com/docs/components/textarea#autoresize
🧐 Expected behavior
The textarea should not have scrollbars.
🧭 Possible Solution
Compute an accurate height, or err on the large side.
🌍 System information
📝 Additional information
The text was updated successfully, but these errors were encountered: