ginader / HTML5-placeholder-polyfill

Small and robust polyfill for the HTML5 placeholder attribut.
GNU General Public License v2.0
223 stars 85 forks source link

Placeholder positions not updating in Firefox 18 #42

Open JesseDunlap opened 11 years ago

JesseDunlap commented 11 years ago

I was encountering an issue with an automatic resizing text box which would push the inputs below it down. On a seemingly random basis, the placeholder of an input below the auto-resizing input would not update (e.g. wouldn't move down). Adding the code below on line 165 seemed to fix the issue.

$('input').on("resize", function() {
    positionPlaceholder(placeholder,input);
});

Screenshot of the problem:

Untitled

ginader commented 11 years ago

good find! what did you use to make the input auto resizing? thanks :-)

JesseDunlap commented 11 years ago

I believe we wrote our own custom jQuery plugin. At one point, we were using some other plugin, but it wasn't suiting our needs very well, so we switched away from it. I'm not exactly sure what we did, I'll have to get back to you on that. Have an excellent weekend!

JesseDunlap commented 11 years ago

Hey, sorry I didn't get back sooner, I've been really busy. We use the jQuery.autoresize plugin (Google should bring up a result for it) although we've encountered more issues with it recently. We will hopefully be contributing those issues back to the repo, although it looks like it hasn't been updated in awhile.

ginader commented 11 years ago

thanks Jesse