enhancementhelp wanted
Repository-Metriken
- Stars
- (83 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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