File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,15 @@ function drawLayout() {
34
34
}
35
35
36
36
function drawHorizontalLayout ( ) {
37
- var phoneFrame = document . getElementById ( 'phone_frame' ) ;
38
- phoneFrame . style . height = window . innerHeight + 'px' ;
39
- phoneFrame . style . left = '0px' ;
37
+ document . getElementById ( 'phone_frame' ) . height = window . innerHeight + 'px' ;
38
+ document . getElementById ( 'phone_container' ) . style . left = '0px' ;
40
39
document . getElementById ( 'text_container' ) . style . left = phoneFrame . offsetWidth + 30 + "px" ;
41
40
}
42
41
43
42
function drawVerticalLayout ( ) {
44
43
var phoneFrame = document . getElementById ( 'phone_frame' ) ;
45
44
phoneFrame . style . height = Math . floor ( 0.6 * window . innerHeight ) + 'px' ;
46
- phoneFrame . style . left = ( window . innerWidth - phoneFrame . offsetWidth ) / 2 + 'px' ;
45
+ document . getElementById ( 'phone_container' ) . style . left = ( window . innerWidth - phoneFrame . offsetWidth ) / 2 + 'px' ;
47
46
document . getElementById ( 'text_container' ) . style . left = "5%" ;
48
47
}
49
48
You can’t perform that action at this time.
0 commit comments