WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Comment box is expanding height while typing in Arras (3 posts)

  1. tomaszs
    Member
    Posted 1 year ago #

    Look at this:

    http://polishwords.com.pl/blog/2012/10-najbardziej-przydatnych-aplikacji-na-androida-linki-kody-qr/

    Press red button at the bottom, click on the comment field and start typing. Height of Jetpack comments box expands while typing. Every letter 17 pixels of height more...

    I've tried on Twenty Eleven but it works fine.
    And in Arras modified theme it does not work.
    Any guesses? I can not find it for 4 days.:(

    http://wordpress.org/extend/plugins/jetpack/

  2. tomaszs
    Member
    Posted 1 year ago #

    I've found that first textarea in comment-form-comment has width equal to 0px. When i manually in Firebug change it to for example 200px it does not expand the textbox anymore. Well... its expanding but when text reaches 200pixels.

    So my guess is that in the JetPack code is some kind of function that calculates when it should expand the height of the textarea based on the width of the text. So when text reaches new line it expands the textarea.

    But in this case since the width of the field is 0px, it expands vertically on every character.

    Please help anyone how to fix it.

  3. tomaszs
    Member
    Posted 1 year ago #

    nvmd i've found that setting display: none on the iframe with comments made the script of comments wrongly calculate the width of the area. I've removed so it works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic