Hai Michael,
I have two last questions... Sorry to bother you...
1 I want to set the minimum height of an iFrame to 600px. So even when the content height of the iFrame is less, it should take 600px as height.
I have adjusted the function aiGetIframeHeight(obj) in ai.js which works. But... Is this the right place and way to do this?
Code:
function aiGetIframeHeight(obj) {
var bodyHeight = Math.max(obj.contentWindow.document.body.scrollHeight,
obj.contentWindow.document.body.offsetHeight,
obj.contentWindow.document.documentElement.scrollHeight,
obj.contentWindow.document.documentElement.offsetHeight);
var newheight = bodyHeight + aiExtraSpace;
// MLV Workaround to get minimum 600px height
if (newheight<600)
{
newheight=600;
}
return newheight;
}
2 I want to resize the contents of the iFrame only when the site is running on an iPad/tablet or mobile phone. So only resize the contents when the canvas comes below a certain treshold (like 800px, but not when the site is running in a browser and the width of the browser > 800px. I have been struggling with this and try to make some adjustments in ai.js but for now no luck. I have looked in the forum but could nog find an answer on this. Perhaps you can point me in the right direction?
Thanx in advance for your effort and energy!
Regards, Marc