• Working on a horizontal scroller:
    https://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?

    https://www.ads-software.com/extend/plugins/orangebox/

  • The topic ‘[Plugin: OrangeBox] Container centers on page, not in viewport’ is closed to new replies.