The counter adds itself right after the text area but when inside the resizable textfield div with the grippy div it wedges itself between the two.
Here is a picture of what I mean:
https://img.skitch.com/20111205-c9nfqgmihqdrj1kkre515y8ks6.jpg
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | maxlength.js-1361816-5334322.diff | 937 bytes | joelpittet |
| #2 | maxlength.js_.diff | 718 bytes | joelpittet |
Comments
Comment #1
piotrsmykaj commentedin maxlength.js find this line:
$(this).after('<' + options.counterElement + ' id="' + $(this).attr('id') + '-' + options.css + '" class="' + options.css + '"></' + options.counterElement + '>');and change to this one:
Comment #2
joelpittetGood call, here's a patch with out the duplicate after tag construction. Should it go outside the containing div or just after the grippy?
Comment #3
joelpittethere is a nicer git patch with a space fix for the indent.
Comment #4
fangel commentedThe patch in #3 fixes this issue.
Comment #5
schnitzel commentedthx!
commited to the latest DEV:
http://drupalcode.org/project/maxlength.git/commit/78de20c