File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en ">
33 < head >
4- < meta charset ="utf-8 ">
54 < title > three.js - examples</ title >
5+ < meta charset ="utf-8 ">
66 < style >
77
88 @font-face {
6767 # viewer {
6868 position : absolute;
6969 left : 310px ;
70- width : -webkit-calc (100% - 310px ); /* Safari */
7170 width : calc (100% - 310px );
7271 height : 100% ;
7372 border : 0px ;
@@ -367,6 +366,17 @@ <h1><a href="http://threejs.org">three.js</a> / examples</h1>
367366 var list = document . getElementById ( 'list' ) ;
368367 var viewer = document . getElementById ( 'viewer' ) ;
369368
369+ if ( / ( i P a d | i P h o n e | i P o d ) / g. test ( navigator . userAgent ) ) {
370+
371+ viewer . addEventListener ( 'load' , function ( event ) {
372+
373+ viewer . contentWindow . innerWidth -= 10 ;
374+ viewer . contentWindow . innerHeight -= 2 ;
375+
376+ } ) ;
377+
378+ }
379+
370380 var container = document . createElement ( 'div' ) ;
371381 list . appendChild ( container ) ;
372382
You can’t perform that action at this time.
0 commit comments