Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjusting the height in iPhone Safari
Message
From
02/05/2017 12:39:22
 
 
To
02/05/2017 02:53:04
General information
Forum:
Javascript
Category:
IFrame
Miscellaneous
Thread ID:
01650761
Message ID:
01650787
Views:
22
Multiple div insertions would do it.
<style>
.IFrameContainer
{
   position: absolute;
   top: 40;
   width: 100%;
}

.IFrameContainerScroll
{
   overflow: hidden;
   width: 100%;
   -webkit-overflow-scrolling: touch;
}

.IFrameMobile
{
   width: 100%;
   border: none;
}
</style>

<div class="IFrameContainer">
<div class="IFrameContainerScroll" id="IFrameContainerScroll">
<iframe src="MyUrl" ID="Mobile" class="IFrameMobile">
</iframe>
</div>
</div>
...and, then, some javascript code which is executed on load:
function ResizeEnvironment()
{
   BrowserDimension()
   lnHeight=nBrowserHeight
   lnHeight2=lnHeight-34
   document.getElementById("IFrameContainerScroll").style.height=lnHeight2+"px"
   document.getElementById("Mobile").style.height=lnHeight2+"px"
}
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform