WordPress.org

Ready to get started?Download WordPress

Forums

OrangeBox
Container centers on page, not in viewport (1 post)

  1. marvd
    Member
    Posted 1 year ago #

    Working on a horizontal scroller:
    http://www.nomadproductions.com/delhiinaday-wp/

    When I click on the trailer or gallery thumbnails, Orangebox works like it's supposed to — but somewhere other than where the viewer's scrolled to. Could someone help me out with an edit that situates the modal popup horizontally over the currently viewed content, rather than at the center of the page?

    I see there's something going on in line 525 with the y-offset:

    p = $(window).scrollTop();
    if (p === 0) {
    p = $(document).scrollTop();
    }
    if (p === 0) {
    p = window.pageYOffset;
    }
    $("#ob_container").css("margin-top", p);

    I tried duplicating that and replacing 'p' with 'q', 'Top' with 'Left' and 'Y' with 'X', but no luck. Suggestions?

    http://wordpress.org/extend/plugins/orangebox/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic