Support » Plugin: Collapse-O-Matic » [Plugin: jQuery Collapse-O-Matic] Anchor Position Offset By Unloaded Image's Height

  • Resolved uamv

    (@uamv)


    Hello! Thank you for this plugin! i have been working to develop a new site for our organization that depends heavily upon your plugin. It is so customizable and functions super well.

    One small issue has arisen as i took the page live for testing …

    i am using the findme=”auto” attribute of the shortcode for every child page that is displayed, and notice that, due to image loading time (if images are not previously cached in a user’s browser), the anchor position (i.e. it’s name attribute) is often offset by the image height of any unloaded images that exist before the anchor. This makes the vertical position called by that anchor less than it should be. Thus, when the trigger executes ‘findme’, the trigger element is not always focused to the top of the page.

    I currently know next to nothing about jquery, but is there a way to assign, or re-assign, the name attribute to the anchor tags after all images on the page have loaded? You can find a live test page at vandercar.net/wmpl. The site will eventually go live at wmpl.org. The ‘Where We Work’ page has a number of images and has been giving me the most issues.

    Also, if this a fix that could be implemented in future versions (i.e. doesn’t negatively impact optimal functionality), i would greatly appreciate that, so i don’t lose any fixes in future upgrades. Thank you!

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Baden

    (@baden03)

    Hmmm… interesting. We’ll look into triggering the findme=”auto” values once all the images have loaded in the next release.

    In the mean time, you could give the findme a fixed value, like findme=”720″…then the page would scroll to that position regardless if the image has loaded or not.

    uamv

    (@uamv)

    Thanks, Biden. i’ll hold off on defining them each individually, as they would need to be updated any time a subpage might be added, or edited. The header is still usually visible in the browser, just not set to the top. i’ll look forward to the possible inclusion of this fix in the next release. Again, thanks!

    Plugin Author Baden

    (@baden03)

    UaMV: Please upgrade to version 1.4.11c direct from the Plugin Oven: http://plugins.twinpictures.de/plugins/collapse-o-matic/

    It should wait until all elements (including images) have loaded before calculating the auto findme offset.

    Please let us know if it works out for you.

    uamv

    (@uamv)

    Nice! Working flawlessly! Many thanks!

    Plugin Author Baden

    (@baden03)

    schweet!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: jQuery Collapse-O-Matic] Anchor Position Offset By Unloaded Image's Height’ is closed to new replies.