Closed Bug 716717 Opened 13 years ago Closed 12 years ago

Scroll to the paypal iframe

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P4)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: andy+bugzilla, Assigned: cvan)

References

Details

When the paypal modal loads it loads near where a user clicked. On a large page, this might be outside of the current viewport, leaving the user confused. 

Is there anyway we can scroll to the top of the iframe for the users?
$(document.documentElement).animate({ scrollTop: $('iframe[name=PPDGFrame]').offset().top }, 1000);

Not sure when we should run this, mind, but that code'll do ya.
Assignee: nobody → dspasovski
Target Milestone: --- → 6.3.8
Blocks: 718560
No longer blocks: 710074
This seems to not really be a problem since the PP modal shows up at the current scrolltop you happen to be sitting on...in cases of extreme lag the user can scroll away but I'd rather wait on more testing feedback before trying to address this.

The ultimate solution may be to force the modal to be fixed position.
Target Milestone: 6.3.8 → ---
Potch: is this still something that needs doing with the new pages?
Blocks: 735054
No longer blocks: 718560
Bump - I think this needs fixing for Marketplace too.
Blocks: 741557
https://github.com/mozilla/zamboni/commit/d6438f6
Assignee: dspasovski → cvan
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 6.5.0
Verified as fixed in https://marketplace-dev.allizom.org/ on Nightly (Win 7)
Postfix screencast http://screencast.com/t/kU3QxMdTqo
Closing bug.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.