Fixed a problem with the orientation when loaded in an iframe