Graduate

Update index.html UI

...@@ -66,8 +66,8 @@ function init() ...@@ -66,8 +66,8 @@ function init()
66 var ratio = 1.0; 66 var ratio = 1.0;
67 video.width = video.videoWidth; 67 video.width = video.videoWidth;
68 video.height = video.videoHeight; 68 video.height = video.videoHeight;
69 - if (video.width > screenWidth || video.height + headerHeight > screenHeight){ 69 + if (video.width > screenWidth || video.height + headerHeight + messageboxHeight / 2 > screenHeight){
70 - ratio = Math.min(screenWidth / video.width * 1.0, screenHeight / ((video.height + headerHeight) * 1.0)); 70 + ratio = Math.min(screenWidth / video.width * 1.0, screenHeight / ((video.height + headerHeight + messageboxHeight / 2) * 1.0));
71 } 71 }
72 container.style.width = Math.round(video.width * ratio) + 'px'; 72 container.style.width = Math.round(video.width * ratio) + 'px';
73 container.style.height = Math.round(video.height * ratio) + 'px'; 73 container.style.height = Math.round(video.height * ratio) + 'px';
......