simpler approach to resizeToFit for iframe and its content