Skip to content

Commit

Permalink
prevent scrolling in iframe on desktop
Browse files Browse the repository at this point in the history
this corrects an issue with resize events when a scrollbar appears
within the iframe due to content changes.
  • Loading branch information
slogsdon committed Oct 3, 2017
1 parent 81edf7f commit 39a9b3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dist/rxp-js.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! rxp-js - v1.2.1 - 2017-07-17
/*! rxp-js - v1.2.1 - 2017-10-03
* The official Realex Payments JS SDK
* https://github.com/realexpayments/rxp-js
* Licensed MIT
Expand Down Expand Up @@ -187,6 +187,10 @@ var RealexHpp = (function() {
iFrame.setAttribute("width", "360px");
iFrame.setAttribute("seamless", "seamless");

if (!isMobileIFrame) {
iFrame.setAttribute("scrolling", "no");
}

iFrame.style.zIndex="10001";
iFrame.style.position="absolute";
iFrame.style.transition="transform 0.5s ease-in-out";
Expand Down
Loading

0 comments on commit 39a9b3f

Please sign in to comment.