HTML5-placeholder-polyfill icon indicating copy to clipboard operation
HTML5-placeholder-polyfill copied to clipboard

Placeholder positions not updating in Firefox 18

Open JesseDunlap opened this issue 12 years ago • 4 comments

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

JesseDunlap avatar Feb 15 '13 21:02 JesseDunlap

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

ginader avatar Feb 15 '13 22:02 ginader

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 avatar Feb 16 '13 01:02 JesseDunlap

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.

JesseDunlap avatar Mar 01 '13 19:03 JesseDunlap

thanks Jesse

ginader avatar Mar 01 '13 19:03 ginader