From 6b540219c6f41cc233ed69a94f1fccf559742b0e Mon Sep 17 00:00:00 2001 From: rongzedong Date: Wed, 6 Sep 2017 13:35:43 +0800 Subject: [PATCH 1/2] Update xgcalendar.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit // $dvtec[0].scrollTop = sh; // TODO 滚动的坏处是看不到了全日活动的,需要上滚才可以看到 --- code/js/plugin/xgcalendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/js/plugin/xgcalendar.js b/code/js/plugin/xgcalendar.js index d8adef2..561f06e 100644 --- a/code/js/plugin/xgcalendar.js +++ b/code/js/plugin/xgcalendar.js @@ -1945,7 +1945,7 @@ var ph = $dvtec[0].scrollHeight; if (sh < 0) sh = 0; if (sh > ph - ch) sh = ph - ch - 10 * (23 - h); - $dvtec[0].scrollTop = sh; + // $dvtec[0].scrollTop = sh;// TODO 滚动的坏处是看不到了全日活动的,需要上滚才可以看到 } else { From cf717bebb5135bebe08f899a4ff2c7c00e3c782e Mon Sep 17 00:00:00 2001 From: rongzedong Date: Wed, 6 Sep 2017 13:37:29 +0800 Subject: [PATCH 2/2] Update xgcalendar.js --- example/php-newstyle/static/js/plugin/xgcalendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/php-newstyle/static/js/plugin/xgcalendar.js b/example/php-newstyle/static/js/plugin/xgcalendar.js index 3c8ab20..cb54e72 100644 --- a/example/php-newstyle/static/js/plugin/xgcalendar.js +++ b/example/php-newstyle/static/js/plugin/xgcalendar.js @@ -1945,7 +1945,7 @@ var ph = $dvtec[0].scrollHeight; if (sh < 0) sh = 0; if (sh > ph - ch) sh = ph - ch - 10 * (23 - h); - $dvtec[0].scrollTop = sh; + // $dvtec[0].scrollTop = sh; TODO } else {