autosize text inputs

By myfonj Last update Jun 1, 2008 — Installed 80 times. Daily Installs: 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0
Script Summary:
Focused inputs and textareas fits theirs contents as-you-type.

This script has no discussions.

start the discussion

Review Summary
5 stars
0 reviews (0)
4 stars
1 reviews (1)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 1 review

Functional but not perfect; for now:
- focused inputs must have monospaced font
- focused textareas must not have borders nor paddings

Notes:
- it is possible (and very easy) to keep resized dimensions after blur, but for now I decided to make it not-so-disruptive: original page layout (that is: original input dimensions) will remain intact while not edited.

Related:
- "Textarea Resize" userscript (on-[ctrl+enter]…)
- "Searchbar Autosizer" extension (on-the-fly option).
- excellent "Resizeable Textarea" extension (on-[drag])
- also "Psi" IM client has neat on-the-fly autosizing option for input text box.