Skip to content

Commit 91d26bb

Browse files
authored
Update script.js
1 parent a53de85 commit 91d26bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ function drawLayout() {
3434
}
3535

3636
function drawHorizontalLayout() {
37-
document.getElementById('phone_frame').height = window.innerHeight + 'px';
37+
var phoneFrame = document.getElementById('phone_frame');
38+
phoneFrame.height = window.innerHeight + 'px';
3839
document.getElementById('phone_container').style.left = '0px';
3940
document.getElementById('text_container').style.left = phoneFrame.offsetWidth + 30 + "px";
4041
}

0 commit comments

Comments
 (0)