Skip to content

Commit

Permalink
Add missing sizing styles wordSpacing & scrollbarGutter (#401)
Browse files Browse the repository at this point in the history
* Add missing sizing styles wordSpacing & scrollbarGutter

* Create serious-shoes-draw.md

---------

Co-authored-by: Mateusz Burzyński <[email protected]>
  • Loading branch information
olee and Andarist authored Nov 13, 2024
1 parent 5513a8e commit 4a34e1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-shoes-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-textarea-autosize": patch
---

Add missing `wordSpacing` and `scrollbarGutter` as properties that can impact sizing
2 changes: 2 additions & 0 deletions src/getSizingData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const SIZING_STYLE = [
'textTransform',
'width',
'wordBreak',
'wordSpacing',
'scrollbarGutter',
] as const;

type SizingProps = Extract<
Expand Down

0 comments on commit 4a34e1b

Please sign in to comment.