Hi all,
Having more than one tab opened in Safari, putting an iPhone (mine is a 6S Plus) in landscape mode prevents KRPano from hiding Safari bars and hides the lower part of the window, cutting buttons at the bottom out of the screen.
I tried to use window.innerHeight in order to get the correct available height. Here is a javascript that worked for me:
Code
var iheight = window.innerHeight;
function resize() {
if(window.innerHeight != iheight) {
iheight = window.innerHeight;
document.body.style.height = iheight + 'px';
}
};
setInterval(function(){
resize();
}, 500);
Display More
Surely it can be written better and optimized, but it seems that it fixes the problem. I put it in the html page that embeds the KRPano viewer.
Best regards,
Hans