Support » Plugin: WP Ajaxify Comments » jQuery("#wpadminbar").outerHeight bug

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author janjonas

    (@janjonas)

    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/).

    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.

    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.

    another issue:

    Uncaught ReferenceError: form is not defined, wp-ajaxify-comments.js:174

    Plugin Author janjonas

    (@janjonas)

    Hi,

    I’m sorry, but I can’t reproduce the outerHeight problems; see http://jsfiddle.net/9EsHg/.

    Could you send me a link to the WordPress page where all the reported problems occur?

    Plugin Author janjonas

    (@janjonas)

    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.