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

  1. tomaszs
    Posted 3 years ago #

    Look at this:


    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.:(


  2. tomaszs
    Posted 3 years 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
    Posted 3 years 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

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic