enhancementhelp wanted
Repository metrics
- Stars
- (83 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
As suggested in https://github.com/fregante/fit-textarea/issues/17
Unlike now, fit-textarea should start being a little more stateful, like caching the line-height
- Use
getComputedStyle($0).lineHeightto get the line height on first load - If
normal, estimate (with excess) and then detect the height change at the nextrowsincrease - if the scrollHeight is higher than the clientHeight, set the
rowsattribute toscrollHeight/lineHeight
This would fix https://github.com/fregante/fit-textarea/issues/17 permanently.
Note: v3 is deprecated and any work should start on top of v2