New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top of modal within iframe isn't in view when modal is shown on iOS #20352
Comments
Please open a separate issue for that. Much appreciated. |
Also, we cannot debug screenshots. Please make a reduced test case using JS Bin (or similar). |
On nexus 5 everything OK. I just show right case. |
about on iPhone, I upload example code to my server |
There are 2 issues for iframe in Safari's iPhone from that example.
|
We've manually fix modal show incorrect position in iframe on iPhone by calling focus event again using javascript.It's works. |
@psukmak Did you solve? |
@chaiyot Did you solve? |
@majianxiong No, I did not. I waiting update from bootstrap $('#myModal').on('hidden.bs.modal', function (e) { |
@psukmak $(document).scrollTop() is zero |
Relevant solutions: |
problem is resolved |
Copied to Plunker for durability: https://plnkr.co/edit/jYMgPUsBwAuTCCze3KWe?p=preview |
This portion seems to be referring to https://bugs.webkit.org/show_bug.cgi?id=153852 , which we've already reported to WebKit. |
I can confirm that the user sees the middle of the modal in iOS Safari and the top of the modal in Android Chrome, when the modal within the iframe is initially shown. |
I've also been having problems with this issue. See this JS Fiddle https://jsfiddle.net/tmfq0rnm/4/. It works perfectly everywhere except on iOS due to the iframe issue. On iOS tapping "Click here" will cause the iframe to jump to the bottom rather than to where the modal is displayed. Do we know what the status is of this issue? Is there a good fix for it in the meantime? Looking at the previous comments it seems like all the "fixes" may brake other things which I need to avoid. |
I fixed a similar issue with the following solution: $('#id_iframe').load(function () { function resizeIframeForm() {
} |
This is super stale, and I'm not seeing a clear issue anymore with a live demo. I updated the last Fiddle link to the latest version of v4.x and things look okay to me I think? https://jsfiddle.net/deghcsuv/ Closing out. |
os: IOS 9.3.3
Browser: Chrome , Safari, Firefox
Mobile : iphone 5, 6
Bootstrap : v4.0.0-alpha.2
On first image, I have form put into iframe.
On second imag,I have change location button that put into middle of the form above. when click will show modal.
...............................
On nexus 5 android version 6.0.1
On Iphone 5
The text was updated successfully, but these errors were encountered: