vxsx/jquery.inputfit.js — pull request #2 by RobinDaugherty (2013-02-20 17:02:25+00:00)
Title: Finer increments of font size; set max size to the default size

I implemented two changes:

1. Increments of font size are made in tenths of a pixel. This seems strange, but it is supported by the CSS spec and works correctly in the latest browsers. The result is a smoother decrease of size to fit the input.

2. Added an option, enabled by default, to limit the font size to the default font size dictated by CSS. In other words, if you remove text from the input, it won't make it bigger than the initial style dictated.