2

I made a simple demo to show my problem. This problem occurs only on iOS.

HTML

<!-- Button to Open the Modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
  Open modal
</button>

<!-- The Modal -->
<div class="modal" id="myModal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">
          <iframe src="https://tma.ee/test.htm"> </iframe>
      </div>
    </div>
  </div>
</div>

CSS

iframe {
  width: 100%;
  border: 0;
  min-height: 350px;
}

.modal-body {
  -webkit-overflow-scrolling: touch !important;
  overflow-x: auto !important;
}

I have tried multiple solutions that have been suggested here on stackoverflow, but none of them have worked for me so far.

JSFiddle: https://jsfiddle.net/MulOnPomm/bvk1dmxt/11/

Full screen for iOS testing: http://fiddle.jshell.net/MulOnPomm/bvk1dmxt/1/show/light/

The iOS emulator I'm using for testing: https://appetize.io/

MulOnPomm
  • 145
  • 3
  • 16

1 Answers1

1

Try using the option overflow: scroll; inside the iframe property in css

iframe {
     overflow: scroll;
 width: 100%;
  border: 0;
  min-height: 350px;
}

else refer this link or this issues may help you