When incorporating a Bootstrap application into an iframe, modal dialogs consistently appear at the top of the iframe rather than the top of the screen. To illustrate, visit http://getbootstrap.com/javascript/ and open a modal example on the page. Then utilize the sample code below which embeds the same bootstrap page in an iframe, locate a modal, and open it:
<html>
<head>
</head>
<body>
<table width="100%">
<tr><td colspan="2" style="height:80px;background-color:red;vertical-align:top">Here's some header content I don't control</td></tr>
<tr><td style="width:230px;height:10080px;background-color:red;vertical-align:top">Here's some sidebar content I don't control either</td>
<td valign="top">
<iframe width="100%" height="10000px"
scrolling="no" src="http://getbootstrap.com/javascript/">
</iframe>
</td>
</tr>
</table>
</body>
</html>
What steps should I take to position the modal on the screen under these circumstances?
UPDATE: Unfortunately, my iFrame is unable to cover the entire screen, nor can it be fixed due to the need for it to blend seamlessly with the rest of the page that contains enough content to require scrolling. While this design is not mine and I plan to overhaul it eventually, it is what I have to work with for now. As a temporary workaround, I am using JavaScript to instruct the parent frame of the iframe to scroll to the top when the modal dialog is triggered. Although functional, this solution is not ideal.
I am utilizing angularjs and the ui-bootstrap library in my code, but as shown above, this issue stems from Bootstrap.