소스 검색

Examples: More flexible iOS workaround.

Mr.doob 9 년 전
부모
커밋
2005d6745c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/index.html

+ 2 - 2
examples/index.html

@@ -268,8 +268,8 @@
 
 		if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
 
-			viewer.style.width = window.innerWidth - 310 + 'px';
-			viewer.style.height = window.innerHeight + 'px';
+			viewer.style.width = getComputedStyle( viewer ).width;
+			viewer.style.height = getComputedStyle( viewer ).height;
 			viewer.setAttribute( 'scrolling', 'no' );
 
 		}