We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0537d2 commit 2005d67Copy full SHA for 2005d67
examples/index.html
@@ -268,8 +268,8 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
268
269
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
270
271
- viewer.style.width = window.innerWidth - 310 + 'px';
272
- viewer.style.height = window.innerHeight + 'px';
+ viewer.style.width = getComputedStyle( viewer ).width;
+ viewer.style.height = getComputedStyle( viewer ).height;
273
viewer.setAttribute( 'scrolling', 'no' );
274
275
}
0 commit comments