Skip to content

Commit

Permalink
Merge pull request #51 from o5faruk/fix/iosScroll
Browse files Browse the repository at this point in the history
fix ios scroll
  • Loading branch information
o5faruk authored Aug 10, 2020
2 parents 5ef1642 + 52e6d34 commit 2338e5d
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
84 changes: 62 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<script src="../../../scripts/buildfire/components/notifications/notifications.js"></script>
<style>
body {
overflow-y: scroll !important; -webkit-overflow-scrolling:touch !important;
}
width: 100vw;
height: 100vh;
}

.success-message{
text-align: center;
vertical-align: middle;
Expand Down
2 changes: 1 addition & 1 deletion src/widget/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const renderiFrame = (props) =>{
let iFrame = window.document.createElement('iframe');
iFrame.id = 'webviewIframe';
iFrame.src = props.url;
iFrame.scrolling = props.isIOS ? 'no' : 'yes';
iFrame.scrolling = props.isIOS ? 'yes' : 'auto';
iFrame.style.height = '100%';
iFrame.style.width = '1px';
iFrame.style.minWidth = '100%';
Expand Down

0 comments on commit 2338e5d

Please sign in to comment.