In main.html, the <body> and <iframe> have height:100%. You want the <html> to also have height:100%.