Browse Source

fixed: 显示以及高度

王刚 3 years ago
parent
commit
af1f05c9d9

+ 1 - 1
Gameserver/Public/gamesys/home/pages/action/action.html

@@ -120,7 +120,7 @@
 
             </div>
             <div id="charts_wrap"
-                style="border: 1px solid #e6e6e6; background-color: #fff; width: 40%; height: 260px; display: inline;">
+                style="border: 1px solid #e6e6e6; background-color: #fff; width: 40%; height: 260px; display: inline-table;">
                 
             </div>
         </div>

+ 2 - 2
Gameserver/Public/gamesys/home/pages/action/action.js

@@ -209,10 +209,10 @@ function GetContinued(uid) {
         function(ret) {
             // $("canvas#myChart").remove();
             $("div#charts_wrap").empty();
-            h = Math.round((100 / Object.keys(ret).length));
+            h = Math.round((260 / Object.keys(ret).length));
             for (var date in ret) {
                 id = "myChart" + date;
-                $("div#charts_wrap").append('<div style="width:100%;height:' + h + '%"> <canvas id="' + id +
+                $("div#charts_wrap").append('<div style="width:100%;height:' + h + 'px;"> <canvas id="' + id +
                     '" class="animated fadeIn;" ></canvas></div>');
                 ctx = $("#" + id);
                 lbls = [];