• Resolved woodcutter22

    (@woodcutter22)


    Hi all

    I send you this message, because I have a problem with the plugin, since the last update of wordpress. When the anchor stop is reached, the bar have an extra parameter “visibility : hidden” added to his code.. Did you have an idea ?

    Thank you in advance

    Ps : I have an error in the developper tools (google chrome) : Uncaught TypeError: a.target.className.indexOf is not a function.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Max Bond

    (@max-bond)

    Link to your site please!

    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    The link : https://www.letribunaldunet.fr

    Thanks in advance

    Nicolas

    • This reply was modified 8 years, 1 month ago by woodcutter22.
    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    I send you this message because I have modify the plugin, with a visibility : visible; params but my problem is still there.. When the stop id is reached, all my fixed bar disappear ?

    Do you have an idea, please ?

    Thank’s in advance

    Nicolas from : https://www.letribunaldunet.fr

    Plugin Contributor Max Bond

    (@max-bond)

    Hi!
    What did you modified?? Something is really broken now.

    1. Revert to unmodified plugin version
    2. Disable MutationObserver
    3. Set Refresh Interval = 1500

    Then will see what will happen!

    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    As I wrote in my previous post, I have only replaced ‘hidden’ with ‘visible’ in both js files. This is confirmed by the comparison with the files of the site and those of the official sources of the Plugin.

    For the rest I tried to put the plugin back in its original state, to deactivate an option that was not and to switch to 1500 the Set Refresh Interval option, but no noticeable difference appeared.

    Do you have another idea?

    Thank you in advance

    Nicolas from letribunaldunet.fr

    Plugin Contributor Max Bond

    (@max-bond)

    I see Refresh Interval = 150, it’s too low! Set it to 1500!
    Disable MutationObserver option is not active!

    q2w3-fixed-widget.min.js is loaded two times (and some other scripts too).
    One time in a standard way and one time from agregated js file: https://www.letribunaldunet.fr/wp-content/cache/min/1/580faa7682cf2946651a07d7c6f595bd.js
    That need to be fixed! Disable minification and caching seems it’s not working properly!

    Thread Starter woodcutter22

    (@woodcutter22)

    I just restored the values, which I had already described in the previous test by disabling the Inline JS option of WProcket as you just told me, but still no change.

    And a double execution of the script can really, be the source of the problem?

    Thanks

    Plugin Contributor Max Bond

    (@max-bond)

    The most of errors are gone now!

    I still think you have to remove second copy of the script (in minified js-file).

    The problem is not related to visibility property! The widgets are disappearing because
    their position became too high after fin_scroll is reached! Bottom offset is calculated wrong – may be because of the second script copy.
    So the next step is to remove second copy, then we can continue.

    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    Sorry for the delay ! We have already disabled the option to minimize the Html / js files and the option to minimize Js on the site. But the problem is still there and the files in the cache folders are protected.

    As for the position problem can it be related to another cause?

    Thank you in advance

    Plugin Contributor Max Bond

    (@max-bond)

    Ok!
    Now try to set fixed margin bottom. Set it about 600-800 pixels and remove fin_scroll from options!

    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    Same result without the use of the fin_scroll option and with 600-800-1000px.

    It’s a mystery..

    Nicolas

    Plugin Contributor Max Bond

    (@max-bond)

    Hmm….
    Really difficult case here!

    I have found the root of the problem. On your site
    jQuery(document).height() = jQuery(window).height().
    You can test it in Chrome Console.
    Window height is a browser viewport height. It’s should be about standard display vertical resolution. Document height is your site page height. When scroll is present it must be always higher then window height!

    For example on this page
    jQuery(window).height(); returns 740 for me
    and
    jQuery(document).height(); returns 5100!

    So the problem – jQuery(window).height() returns wrong value! Why?

    The answer is here: https://stackoverflow.com/questions/12103208/jquery-window-height-is-returning-the-document-height !!!

    With no doctype tag, Chrome reports the same value for both calls.
    Adding a strict doctype like <!DOCTYPE html> causes the values to work as advertised.

    Please add the proper doctype to your header.php!!!!
    <!DOCTYPE html>

    Thread Starter woodcutter22

    (@woodcutter22)

    Hi

    Thank you alot !!

    It’s finally working fine with the option fin_scroll reactivate ??

    Nicolas from letribunaldunet

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘“Visibility : Hidden;” When Anchor Stop Is Reached’ is closed to new replies.