Title: jQuery(&quot;#wpadminbar&quot;).outerHeight bug
Last modified: August 21, 2016

---

# jQuery("#wpadminbar").outerHeight bug

 *  Resolved [dedepress](https://wordpress.org/support/users/dedepress/)
 * (@dedepress)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/)
 * there is a jquery bug in wp-ajaxify-comments.js,
 * `jQuery("#wpadminbar").outerHeight();`
 * it will returns object with jquery > 1.8, we should set the parameter false (
   even though there’s a default {false})
 * `jQuery("#wpadminbar").outerHeight(false);`
 * [http://wordpress.org/extend/plugins/wp-ajaxify-comments/](http://wordpress.org/extend/plugins/wp-ajaxify-comments/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [janjonas](https://wordpress.org/support/users/janjonas/)
 * (@janjonas)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743416)
 * Hi dedepress,
 * thanks for your comment. could you provide an example, where
    `jQuery("#wpadminbar").
   outerHeight();` returns an object?
 * As far as I know outerHeight() accepts one optional (boolean) parameter that 
   defines whether the element’s margin should be included when calculating the “
   outer height” (see [http://api.jquery.com/outerHeight/](http://api.jquery.com/outerHeight/)).
 *  Thread Starter [dedepress](https://wordpress.org/support/users/dedepress/)
 * (@dedepress)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743443)
 * in wp-ajaxify-comments.js, on line 15
 * `var top = WPAC._Options.popupMarginTop + jQuery("#wpadminbar").outerHeight();`
 * I tested it with jQuery 1.8.3 and jQuery 1.9.1, the `jQuery("#wpadminbar").outerHeight()`
   returns object and we can’t get correct top value, it caused blockui message 
   box can’t appear in right place. after set paremeter false, it’s work.
 *  Thread Starter [dedepress](https://wordpress.org/support/users/dedepress/)
 * (@dedepress)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743444)
 * another issue reported by my client,: when you post the comment, the comment 
   gets posted perfectly but the comment you write is still in textarea#comment .
   I think it should be emptied after the comment posted.
 *  Thread Starter [dedepress](https://wordpress.org/support/users/dedepress/)
 * (@dedepress)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743445)
 * another issue:
 * Uncaught ReferenceError: form is not defined, wp-ajaxify-comments.js:174
 *  [janjonas](https://wordpress.org/support/users/janjonas/)
 * (@janjonas)
 * [13 years ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743478)
 * Hi,
 * I’m sorry, but I can’t reproduce the outerHeight problems; see [http://jsfiddle.net/9EsHg/](http://jsfiddle.net/9EsHg/).
 * Could you send me a link to the WordPress page where all the reported problems
   occur?
 *  [janjonas](https://wordpress.org/support/users/janjonas/)
 * (@janjonas)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743598)
 * Problem seems to be fixed. Please feel free to reopen the thread if you need 
   further assistance…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘jQuery("#wpadminbar").outerHeight bug’ is closed to new replies.

 * ![](https://ps.w.org/wp-ajaxify-comments/assets/icon-256x256.png?rev=2962290)
 * [Ajaxify Comments - Ajax and Lazy Loading Comments](https://wordpress.org/plugins/wp-ajaxify-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ajaxify-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajaxify-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajaxify-comments/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [janjonas](https://wordpress.org/support/users/janjonas/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/jquerywpadminbarouterheight-bug/#post-3743598)
 * Status: resolved