JackAdams / meteor-editable-text

Drop-in editable text widget for meteor
http://editable-text-demo.taonova.com
MIT License
59 stars 14 forks source link

`autoResize` undocumented? #76

Open t3db0t opened 8 years ago

t3db0t commented 8 years ago

I've been trying for a few hours now to hack together an auto-resizing editable-text input field, and I stumbled upon the undocumented autoResize option. It seems to work, if slightly laggy; is it unfinished?

t3db0t commented 8 years ago

Ah, I see now the lag issue while typing, and the +20px offset to try to make it less obvious. Hmmmm.

JackAdams commented 8 years ago

Yeah, it's undocumented because it's not very well implemented. There are a few other undocumented bits and pieces too.

t3db0t commented 8 years ago

There's got to be a way!

JackAdams commented 8 years ago

I'll accept a PR if you get a workable solution going. The relevant lines of code are: https://github.com/JackAdams/meteor-editable-text/blob/master/lib/editable_text.js#L394-L403