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

  1. marvd
    Posted 3 years ago #

    Working on a horizontal scroller:

    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OrangeBox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic