From b744b9786f0b851ed28e7a1faf49f8e1f7f24072 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 Mar 2017 17:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=BC=B9=E6=A1=86=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_exec_results.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/games/_exec_results.html.erb b/app/views/games/_exec_results.html.erb index 22c3cb568..786820655 100644 --- a/app/views/games/_exec_results.html.erb +++ b/app/views/games/_exec_results.html.erb @@ -120,7 +120,8 @@ $("#code_results").html(html); if(data.status == 2){ var htmlvalue = "<%= j (render :partial => 'games/pass_game_show', :locals => { :game=> @game, :myshixun => @myshixun}) %>"; - pop_box_new2(htmlvalue, 1920, window.innerHeight); + // 传递具体屏幕的宽高,实现不同浏览器与不同分辨率都能撑满屏幕 + pop_box_new2(htmlvalue, window.innerWidth, window.innerHeight); } } if(i == 30){